SSH Password Less Login – The Simple Way

By | May 14, 2013

Let’s say you want to ssh from to without password with user called “james”, this is what you should do.

Login to user “james” at and type the following command!

ssh-keygen -q -t dsa -N ‘ ‘ -f ~/.ssh/id_dsa

The above command will create two files, id_dsa and in the .ssh directory of the user. Now copy the content from ~/.ssh/ file.

Now login to user “james” at and create a file “~/.ssh/authorized_keys”. Paste the content you copied previously to the authorized_keys file and save.

Now login to as “james” user and ssh to james@ password less!

If you like this article, then please consider sharing it. Sharing really inspires us to do things much better!!

Leave a Reply

Your email address will not be published. Required fields are marked *