[iyunv@localhost yum.repos.d]# ssh-keygen Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
/root/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your> Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
79:fe:76:78:92:11:77:5a:63:79:da:5b:04:85:02:06 root@localhost.localdomain
The key's randomart image is:
+--[ RSA 2048]----+
| E.o. o.|
| . . o |
| . ..|
| . . .+=|
| S . o.Bo|
| o . o o|
| . + o|
| .= o. |
| ..+ |
+-----------------+
[iyunv@localhost yum.repos.d]# ssh-copy-id root@192.168.1.103
root@192.168.1.103's password:
Now try logging into the machine, with "ssh 'root@192.168.1.103'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.
[iyunv@localhost yum.repos.d]# ssh-copy-id root@192.168.1.105
root@192.168.1.105's password:
Now try logging into the machine, with "ssh 'root@192.168.1.105'", and check in:
.ssh/authorized_keys
to make sure we haven't added extra keys that you weren |