ssh-keygen -b <key pair size> -t <key type>
ssh-keygen -b 4096 -t rsa
The larger the key size, the stronger the encryption. On the other hand, the creation will take longer to process because the computation will be heavier.
Key types are: dsa, ecdsa, ed25519 and rsa.
ssh-keygen -y -f <private_key_name> > <public_key_name>
ssh-copy-id -i </path/key/public> <user>@<machine>
WARNING, we send here the public key and not the private key. The latter must not be found on the server!
putty-64bit-0.73-installer.msi
OR putty-0.73-installer.msi
on a 32-bit system.PuTTYgen.exe
software.conversions' and then
import key'.Save private key
.WARNING: Your private key must be stored in a SECURE location. No one must have access to it!
PuTTY.exe
.SSH
, then click Auth
(Not the +, the word Auth). Load your private key generated by PuTTYgen.Session
tab, fill in a name in Saved Sessions
, then click on Save
.You should now be able to connect in SSH using asymmetric keys.