Keyless SSH

From Ben's Writing

Jump to: navigation, search

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.

$ 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
$ scp .ssh/id_rsa.pub burnett@ichor:~/
$ ssh burnett@ichor
$ cat id_rsa.pub >>.ssh/authorized_keys
$ chmod 600 .ssh/authorized_keys
$ rm -f id_rsa.pub
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox