|
Linuxrac1
[Oracle @linuxrac1 ~] $mkdir ~/.ssh
[Oracle @linuxrac1 ~] $chmod 755 ~/.SSH
[Oracle @linuxrac1 ~] $SSH-keygen-t RSA
Generating public/private RSA key pair.
Enter file in which to save the key (/HOME/ORACLE/.SSH/ID_RSA):
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved In/home/oracle/.ssh/id_rsa.
Your public key has been saved in/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
E9:2B:1A:2B:AC:5F:91:BE:0F:84:17:D7:BD:B7:15:D2 [email protected]
[Oracle @linuxrac1 ~] $SSH-keygen-t DSA
Generating Public/private DSA key pair.
Enter file in which to save the key (/HOME/ORACLE/.SSH/ID_DSA):
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved IN/HOME/ORACLE/.SSH/ID_DSA.
Your public key has been saved in/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
f5:0f:f5:0c:55:37:6a:08:ef:06:07:37:65:25:4a:15 [email protected]
Linuxrac2
[Oracle @linuxrac2 ~]$ mkdir ~/.ssh
[Oracle @linuxrac2 ~]$ chmod 755 ~/.ssh
[Oracle @linuxrac2 ~]$ ssh-keygen-t RSA
Generating public/private RSA key pair.
Enter file in which to save the key (/HOME/ORACLE/.SSH/ID_RSA):
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved In/home/oracle/.ssh/id_rsa.
Your public key has been saved in/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
56:47:A0:94:67:44:D9:31:12:57:44:08:9D:84:25:A1 [email protected]
[Oracle @linuxrac2 ~]$ ssh-keygen-t DSA
Generating Public/private DSA key pair.
Enter file in which to save the key (/HOME/ORACLE/.SSH/ID_DSA):
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved IN/HOME/ORACLE/.SSH/ID_DSA.
Your public key has been saved in/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
ae:f0:06:77:62:33:86:dc:f4:0d:d9:c6:38:5e:cb:61 [email protected]
The above with the default configuration, a return to
Linuxrac1
Cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
SSH [email protected] Cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
Or
SSH [email protected] Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
SSH [email protected] Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
[[Email protected] ~]$ CD. SSH
[email protected]. ssh]$ LL
Total 48
-rw-r--r--1 Oracle oinstall SEP 02:20 Authorized_keys
-RW-------1 Oracle oinstall 668 SEP 02:09 ID_DSA
-rw-r--r--1 Oracle Oinstall 606 SEP 02:09 id_dsa.pub
-RW-------1 Oracle oinstall 1675 SEP 02:09 Id_rsa
-rw-r--r--1 Oracle oinstall 398 SEP 02:09 id_rsa.pub
-rw-r--r--1 Oracle oinstall 404 Sep 02:20 known_hosts
Linuxrac2
Cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
SSH [email protected] Cat ~/.ssh/*.pub >> ~/.ssh/authorized_keys
Or
SSH [email protected] Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
SSH [email protected] Cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
|