Keyless SSH
From Ben's Writing
Configuration
This tutorial assumes a great deal about the layout of the network and home directories, but it works perfectly at the University of Lethbridge, so that's all I need.
- Generate keys:
$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/burnett/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/burnett/.ssh/id_rsa. Your public key has been saved in /home/burnett/.ssh/id_rsa.pub. The key fingerprint is: c2:41:b6:c2:8f:73:3f:10:d6:6f:70:a3:a9:90:af:c5 burnett@warrior
- Use scp to put your public key on the server:
$ scp .ssh/id_rsa.pub burnett@ichor:~/
- Add your public key to the authorized_keys file on the server in the hidden .ssh directory:
$ ssh burnett@ichor $ cat id_rsa.pub >>.ssh/authorized_keys $ chmod 600 .ssh/authorized_keys $ rm -f id_rsa.pub