Tuesday, December 14, 2004

SSH without password - quick howto

1. On your local machine run:
$ssh-keygen -t rsa
and leave empty password. Accept default location of key file.

2. Change permissions to the directory with your unencrypted private key:
$chmod go-rwx ~/.ssh

3. Copy the contents of your ~/.ssh/id_rsa.pub file to ~/.ssh/authorized_keys2 on the remote machine you want to log in without password. If the authorized_keys2 file does not exist - create it.