logikos@RMT196 ~ $ ssh-keygen -t rsa -f /home/logikos/.ssh/kona_rsa
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/logikos/.ssh/kona_rsa.
Your public key has been saved in /home/logikos/.ssh/kona_rsa.pub.
The key fingerprint is:
b0:4d:59:10:07:99:29:7a:fa:d0:81:9e:a9:52:7f:9d logikos@RMT196
The key's randomart image is:
+--[ RSA 2048]----+
| +Bo |
| . ++ |
| o..o |
| o o= |
| . *..S |
| . * . |
| . o o . . |
|. . . o E |
| . . |
+-----------------+
logikos@RMT196 ~ $ ssh-copy-id -i /home/logikos/.ssh/kona_rsa konads@10.0.0.3
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
konads@10.0.0.3's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'konads@10.0.0.3'"
and check to make sure that only the key(s) you wanted were added.
logikos@RMT196 ~ $ ssh -i /home/logikos/.ssh/kona_rsa konads@10.0.0.3
konads@10.0.0.3's password:
logikos@RMT196 ~ $ ssh-copy-id -i /home/logikos/.ssh/kona_rsa logikos@10.0.0.3
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
logikos@10.0.0.3's password:
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'logikos@10.0.0.3'"
and check to make sure that only the key(s) you wanted were added.
logikos@RMT196 ~ $ ssh -i /home/logikos/.ssh/kona_rsa logikos@10.0.0.3
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-74-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Mon Jan 18 10:30:44 EST 2016
System load: 1.62 Processes: 619
Usage of /: 6.3% of 853.54GB Users logged in: 2
Memory usage: 30% IP address for em1: 10.0.0.3
Swap usage: 0% IP address for em2: 10.0.0.2
Graph this data and manage this system at:
https://landscape.canonical.com/
6 packages can be updated.
0 updates are security updates.
*** System restart required ***
Last login: Mon Jan 18 10:22:37 2016 from rmt196.local
logikos@kona:~$ sudo -i
[sudo] password for logikos:
root@kona:~# cat /home/konads/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC53d/2suYMCAJJC7476phk0fR1dJ6JhFNBlDMA4iPbyk2Li2MuPPMJb+DhOZNsgzx92aPTBUrPw3wPA/vHAhPF24/szLj8L06FxPKXw7k36cUEw4W3BQLEFkJpCrjUzUuD/LUpjQ38iC2zbM5LGmqxEEnuYczcTvD3qOqRsUWgqTvdFjlY6ISwMOy8hFwIrbxuvtgWJOVbgGrRlHlejucHS1ObY38bp1dYeDRUcHkXJ+OblE/AJHklJvmK5dplJ/P89z30gTsDmtB4xU3JRUBjVppds/7hORfFVz8IoL+vAOE4OD0EQ5W73yMDThWFFbSwZw7zZj86W/1xeiDFRla/ logikos@RMT196
root@kona:~# cat /home/logikos/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC53d/2suYMCAJJC7476phk0fR1dJ6JhFNBlDMA4iPbyk2Li2MuPPMJb+DhOZNsgzx92aPTBUrPw3wPA/vHAhPF24/szLj8L06FxPKXw7k36cUEw4W3BQLEFkJpCrjUzUuD/LUpjQ38iC2zbM5LGmqxEEnuYczcTvD3qOqRsUWgqTvdFjlY6ISwMOy8hFwIrbxuvtgWJOVbgGrRlHlejucHS1ObY38bp1dYeDRUcHkXJ+OblE/AJHklJvmK5dplJ/P89z30gTsDmtB4xU3JRUBjVppds/7hORfFVz8IoL+vAOE4OD0EQ5W73yMDThWFFbSwZw7zZj86W/1xeiDFRla/ logikos@RMT196
root@kona:~#