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
Connecting to's password:password
sftp> mkdir .ssh
sftp> cd .ssh
sftp> put .ssh/ authorized_keys2
Uploading .ssh/ to /home/username/.ssh/authorized_keys2
sftp> exit