ssh authorization

Date: Wed, Jan 28, 2015

key-based authorization with SSH

Create a public ssh key, if you haven’t one already. Look at ~/.ssh. If you see a file named then you obviously already have a public key. If not, simply create one.

ssh-keygen -t dsa

ItemMake sure your .ssh dir is 700:

chmod 700 ~/.ssh

Get your public ssh key on the server you want to login automatically.

scp ~/.ssh/

Append the contents of your public key to the ~/.ssh/authorized_keys and remove it. Simply issue something like

cat >> .ssh/authorized_keys

Remove your public key from the home directory on the server.

You can now login without getting asked for a password.

ssh -l remoteuser or ssh