April 12, 2006

Authentication Key Generation

SSH remote connection without password.

User@Localhost> ssh-keygen -t dsa
accept the default key file location and enter a passphrase (or just keep blank)

You will see 2 files (~/.ssh/id_dsa.pub and ~/.ssh/id_dsa).

Now you append the contents of "~/.ssh/id_dsa.pub"
(complete and without line breaks)
to your "/nfs/home/USER/.ssh/authorized_keys" file of remote machine.

Keep the private key "~/.ssh/id_dsa" can't read by other.

Now you can access the remote host without keying the password.

No comments: