Creating an authorized_keys2 file.

In order to use your new key pair to login on another machine, it is necessary to tell the remote computer which keys should be accepted. You do this by creating an authorized_keys2 file. In it, place the public half of any key pair that you want to use. Anyone with the secret half of the key will then be able to login to the account without a password.

Example B-2. Making authorized_keys2


$ sftp username@xenon.truman.edu
Connecting to xenon.truman.edu...
username@xenon.truman.edu's password:password
sftp> mkdir .ssh
sftp> cd .ssh
sftp> put .ssh/id_dsa.pub authorized_keys2
Uploading .ssh/id_dsa.pub to /home/username/.ssh/authorized_keys2
sftp> exit