|Getting Started with GNU/Linux|
|Prev||Appendix B. Advanced: Password-less Authentication With SSH||Next|
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 firstname.lastname@example.org Connecting to xenon.truman.edu... email@example.com'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