Differences

This shows you the differences between the selected revisions of the page.

guide_public_key 2025-01-28 guide_public_key 2026-04-02 (current)
Line 26: Line 26:
  * 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.
  * Ensure that your account home directory, your ''.ssh'' directory and file ''authorized_keys'' are not group-writable or world-writable. Recommended permissions for ''.ssh'' directory are ''700''. Recommended permissions for ''authorized_keys'' files are ''600''. Read more about [[task_properties|changing permissions]].   * Ensure that your account home directory, your ''.ssh'' directory and file ''authorized_keys'' are not group-writable or world-writable. Recommended permissions for ''.ssh'' directory are ''700''. Recommended permissions for ''authorized_keys'' files are ''600''. Read more about [[task_properties|changing permissions]].
 +
 +If you cannot log in directly with the account yet (e.g., you need to use ''sudo'' to switch to ''root''), you might not be able to use WinSCP to set up the key.((Although WinSCP can, with some limitations, [[faq_su|change user after login]], this is unlikely to work at this stage.)) In this case, set up the key using shell commands that replicate the procedure above.
==== OpenSSH on Windows ==== ==== OpenSSH on Windows ====
Line 42: Line 44:
When configuring session, specify path to your private key on //[[ui_login_authentication|SSH > Authentication page]]// of Advanced Site Settings dialog. When configuring session, specify path to your private key on //[[ui_login_authentication|SSH > Authentication page]]// of Advanced Site Settings dialog.
-Alternatively, load the private key into [[ui_pageant|Pageant]].+Alternatively, load the private key into [[ui_pageant|PuTTY Pageant]] (or [[ui_pref_security#authentication|OpenSSH ssh-agent]]).
===== Public Key Authentication in Clouds ===== ===== Public Key Authentication in Clouds =====

Last modified: by martin