How to login to a remote Linux machine with out a password prompt.

I login to my home server a lot from a remote location. If I have to do this a lot I like to have a public key set up so that I don’t need to enter my long password. Here is the way I get around that.

First, we will be doing this in a terminal.

Create Public Key

ssh-keygen -t dsa
chmod 700 ~/.ssh

Copy Public Key to Remote Host

scp -P 443 ~/.ssh/ user@remoteserver:.

Login to Remote to add your Public Key to the server

ssh -p 443 user@remoteserver
cat >> .ssh/authorized_keys

Test it!!!###

ssh -p 443 user@remoteserver

You should now be able to login to the machine with out a password prompt.

Have Fun,