Jun 15, 2013

SSH Login Without Password

I forgot to put a section about login to an ssh account without password for my previous entry about VNC Gateway. The VNC scripts should have been working without password entry. Here is how to do it.

First, make a public key for local account, just follow the simple instructions:

$ ssh-keygen

Then add the public key to remote account list of authorized accounts:

$ cat ~/.ssh/id_rsa.pub | ssh remote_user@remote_system 'cat >> ~/.ssh/authorized_keys'

Now try to login using ssh, it should not ask for password anymore:

$ ssh remote_user@remote_system
Post a Comment