Difference between revisions of "SSH keys"
Jump to navigation
Jump to search
m |
m |
||
| Line 2: | Line 2: | ||
*download WinSCP package (including key-generating PuttyGen.exe) [http://winscp.net/eng/download.php here] | *download WinSCP package (including key-generating PuttyGen.exe) [http://winscp.net/eng/download.php here] | ||
| − | + | *double click puttygen.exe to start it | |
| − | + | *select SSH-2 RSA (default) and click 'generate' | |
| − | + | *'create some randomness' as instructed on screen | |
| − | *will not work if your home directory has group permissions until you set StrictModes to 'no' | + | *leave 'passphrase' fields empty |
| + | *click to save 'private key' as you would need this in client | ||
| + | *copy (do not use 'save public key' for unix use!) public key as displayed on the top of the screen | ||
| + | *paste and save the public key into your home directory on unix host, into file .ssh/authorized_keys | ||
| + | *chmod 700 .ssh | ||
| + | *chmod 600 authorized_keys | ||
| + | *also, will not work if your home directory has group permissions until you set StrictModes to 'no' | ||
*do not forget to restart sshd when making changes to configuration | *do not forget to restart sshd when making changes to configuration | ||
Revision as of 10:08, 20 December 2007
- download WinSCP package (including key-generating PuttyGen.exe) here
- double click puttygen.exe to start it
- select SSH-2 RSA (default) and click 'generate'
- 'create some randomness' as instructed on screen
- leave 'passphrase' fields empty
- click to save 'private key' as you would need this in client
- copy (do not use 'save public key' for unix use!) public key as displayed on the top of the screen
- paste and save the public key into your home directory on unix host, into file .ssh/authorized_keys
- chmod 700 .ssh
- chmod 600 authorized_keys
- also, will not work if your home directory has group permissions until you set StrictModes to 'no'
- do not forget to restart sshd when making changes to configuration