Generating public/private rsa key pair.
Enter file in which to save the key (/home/hduser/.ssh/id_rsa):
Created directory '/home/hduser/.ssh'.
Your identification has been saved in /home/hduser/.ssh/id_rsa.
Your public key has been saved in /home/hduser/.ssh/id_rsa.pub.
The key fingerprint is:
2a:de:41:3e:67:22:c7:e5:37:d6:2c:3f:24:98:5f:99 hduser@ubuntu2
The key's randomart image is:
+--[ RSA 2048]----+
| |
| |
| |
| |
| . So o |
| + +o .oE |
| o O +.=+o |
| . = * o.+. |
| . . .. |
+-----------------+
ssh slave
The authenticity of host 'slave (192.168.1.196)' can't be established.
ECDSA key fingerprint is b6:3b:43:14:e4:62:72:4e:e3:e4:71:10:c5:1a:32:29.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'slave,192.168.1.196' (ECDSA) to the list of known hosts.
hduser@slave's password:
Welcome to Ubuntu 13.10 (GNU/Linux 3.11.0-12-generic x86_64)
exit
scp .ssh/id_rsa.pub slave:~/pub.txt
hduser@slave's password:
id_rsa.pub 100% 395 0.4KB/s 00:00
ssh slave
hduser@slave's password:
Welcome to Ubuntu 13.10 (GNU/Linux 3.11.0-12-generic x86_64)
* Documentation: https://help.ubuntu.com/
System information as of Tue Mar 25 23:58:55 EDT 2014
System load: 0.0 Processes: 77
Usage of /: 18.6% of 5.78GB Users logged in: 1
Memory usage: 3% IP address for eth0: 192.168.1.196
Swap usage: 0% IP address for virbr0: 192.168.122.1
Graph this data and manage this system at:
https://landscape.canonical.com/
111 packages can be updated.
59 updates are security updates.
Last login: Tue Mar 25 23:55:24 2014 from 192.168.1.199
cat pub.txt >> .ssh/authorized_keys
exit
ssh slave(no password is being asked this time)
No comments:
Post a Comment