password-less ssh login

– On local machine, generate key pairs by

ssh-keygen

follow the prompt, enter nothing as password, a pair of key files (id_rsa, id_rsa.pub) is generated in folder .ssh

– Copy the file .ssh/id_rsa.pub to the .ssh folder as new name “authourized_keys” via scp, command as below:

scp .ssh/id_rsa.pub user@host.com:~/.ssh/authorized_keys

That’s it!

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s