Differences
This shows you the differences between the selected revisions of the page.
guide_public_key 2022-11-17 | guide_public_key 2023-12-06 (current) | ||
Line 8: | Line 8: | ||
* [[guide_connect|Know how to connect to the server without public key authentication]]. | * [[guide_connect|Know how to connect to the server without public key authentication]]. | ||
- | b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcnNhAAAAAwEAAQAAAYEA9Xeyir/Llz366BFVDqUfSJLbEow3H3HxfFE9SnvGNOdUIb1vLqGdpY0/EDiwgg07stQru9mWUU7RL6P8FFK0gsEx/7FAZQjqPZrba2PkAyVCV2s+Vlk1NUJcvRop3lE0AQ34wUy7P8YJcYgBedXcfBwr+85Tkw7UElUaKU9zY7JaWFCFbK6f6I4LT1+DK0GsTzO8mE06Z+O69Bv5H6Imc0uxxc70Ob34Qk8dP3OlmqyyHw/ovKuoRuO4oX735OPdQq55r7aSdg1G9sNZ0mG8qD1eIrm35X3pRSDxZJ4J7iUUy4T+EN3hiwQWVSsHR1AHswe0+eYZJ88IKYIbhj+woV3wRz9g0ffx2GtxwrF0fsj556GTu+xk85opG5c1Ez+EqG3jryW5keNv2yVcIGPui0QWfGunAsAo5wIrlKvotO8EAQVfQMMl2uKhiBDQeCQ52zH2GtD5il9rDW52zXMX5Fy9/XietI5jv/buBeGtNZ+QLN/VVRNJ1LK8z/+AeOZ7AAAFkGblQcpm5UHKAAAAB3NzaC1yc2EAAAGBAPV3soq/y5c9+ugRVQ6lH0iS2xKMNx9x8XxRPUp7xjTnVCG9by6hnaWNPxA4sIINO7LUK7vZllFO0S+j/BRStILBMf+xQGUI6j2a22tj5AMlQldrPlZZNTVCXL0aKd5RNAEN+MFMuz/GCXGIAXnV3HwcK/vOU5MO1BJVGilPc2OyWlhQhWyun+iOC09fgytBrE8zvJhNOmfjuvQb+R+iJnNLscXO9Dm9+EJPHT9zpZqssh8P6LyrqEbjuKF+9+Tj3UKuea+2knYNRvbDWdJhvKg9XiK5t+V96UUg8W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78qMiv3V8dirlJfH2tOa7tVBDi2KzLJUgDsUcoEVyqZV7fbp0aSHGPLj0FKskqi7N/oBBXrtsO4lZOHticSXvKiOpLeuUlys9WauzibXVi4KaUXPMq5M6WsyCEmX6ID6QCe0L3nluxoZ4NFV1Qzpj4Dx2Ib5H0PEfq3vFen9OIKGGYsjJcTuzJIS6qqU5oFn8knZhl55yEQw5SPA6ZPAAAAwQD6OFeUKhevkm551D6f36Hr0VTuoA4qPjL3gPU/MlU10oT+Ck12dJu+ajTfci6IPmKtKADL2ZsjKp0ie4y+nVQFdpSGgod3UMUH9Zwl56m5OCGcgITcZ+nPywzf917L5E5UlLcTYALocR0yPnF+UeNA4IA5KH8XaY8uePNFU16ZgKSKPQWcJhiKbcy4F1CxTSiv/6NtoZMhgiBCQq94rL1SgythmwE4C1FSD74J+HBUGxI8wOX0fOq3lmvuckChHhUAAAAWcm9vdEBtYWlsLm5ld3NwcmVzcy5nZQECAwQF | + | ===== [[generate]] Generate Key Pair ===== |
+ | If you do not have a key pair yet, start with [[public_key#generate|generating new key pair]]. | ||
===== [[server]] Configure Server to Accept Public Key ===== | ===== [[server]] Configure Server to Accept Public Key ===== | ||
Line 17: | Line 18: | ||
==== [[configure_openssh]] OpenSSH ==== | ==== [[configure_openssh]] OpenSSH ==== | ||
- | You can use //Session > Install Public Key into Server// command on the main window, or //Tools > Install Public Key into Server// command on //[[ui_login_authentication|SSH > Authentication page]]// page on Advanced Site Settings dialog. The functionality of the command is similar to that of OpenSSH ''[[https://linux.die.net/man/1/ssh-copy-id|ssh-copy-id]]'' command. | + | You can use //Session (Tabs) > Install Public Key into Server// command on the main window, or //Tools > Install Public Key into Server// command on //[[ui_login_authentication|SSH > Authentication page]]// page on Advanced Site Settings dialog. The functionality of the command is similar to that of OpenSSH ''[[https://manpages.debian.org/stable/openssh-client/ssh-copy-id.1.en.html|ssh-copy-id]]'' command. |
Or you can configure the key manually: | Or you can configure the key manually: | ||
- | * Navigate into a ''.ssh'' subdirectory of your account home directory. You may need to enable [[ui_pref_panels#common|showing hidden files]] to see the directory. If the directory does not exists, you need to [[task_create_directory|create it]] first. | + | * Navigate into a ''.ssh'' subdirectory of your account home directory. You may need to enable [[ui_pref_panels#common|showing hidden files]] to see the directory. If the directory does not exist, you need to [[task_create_directory|create it]] first. |
* Once there, open a file ''authorized_keys'' for [[task_edit|editing]]. Again you may have to create this file, if this is your first key. | * Once there, open a file ''authorized_keys'' for [[task_edit|editing]]. Again you may have to create this file, if this is your first key. | ||
* Switch to the [[ui_puttygen|PuTTYgen]] window, select all of the text in the //[[ui_puttygen#authorized_keys|Public key for pasting into OpenSSH authorized_keys file]]// box, and copy it to the clipboard (''Ctrl+C''). Then, switch back to the editor and insert the data into the open file, making sure it ends up all on one line. Save the file. WinSCP can [[ui_login_authentication#private_key_tools|show you the public key]] too. | * Switch to the [[ui_puttygen|PuTTYgen]] window, select all of the text in the //[[ui_puttygen#authorized_keys|Public key for pasting into OpenSSH authorized_keys file]]// box, and copy it to the clipboard (''Ctrl+C''). Then, switch back to the editor and insert the data into the open file, making sure it ends up all on one line. Save the file. WinSCP can [[ui_login_authentication#private_key_tools|show you the public key]] too. |