Key-less SSH Sessions

Key-less SSH Sessions: "

Keyless SSH Sessions


There are times when you need to automate SSH sessions which requires the use of “keys”. When you create a key for SSH, you choose to set a password or to skip that step. We’ll choose to skip that process.


Create your new key pair – a public key that will go to the destination system and a private key that you will keep very safe:



ssh-keygen -t rsa

Copy the public key to the destination system with IP address of “192.168.0.1″:



ssh-copy-id -i /home/myuser/.ssh/id_rsa.pub myuser@192.168.0.1

Now you can SSH from the source computer to the destination computer without being prompted for the password:



ssh myuser@192.168.0.1

Keep in mind the insecurities of such a method as just described.

"