Wednesday, April 22, 2015

Generating SSH key using ssh-keygen

oracle@DB Server:/cs/oracle/data/.ssh $ [OraDB1]ssh-keygen -t rsa
Generating public/private rsa key pair.

Enter file in which to save the key (/cs/oracle/data/.ssh/id_rsa): /cs/oracle/data/.ssh/id_rsa2

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /cs/oracle/data/.ssh/id_rsa2.
Your public key has been saved in /cs/oracle/data/.ssh/id_rsa2.pub.
The key fingerprint is:

4e:8c:91:52:62:69:87:88:19:23:70:d8:34:af:e5:d6 oracle@DB Server

oracle@DB Server:/cs/oracle/data/.ssh $ [OraDB1]ssh-keygen -t dsa
Generating public/private dsa key pair.

Enter file in which to save the key (/cs/oracle/data/.ssh/id_dsa): /cs/oracle/data/.ssh/id_dsa2

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /cs/oracle/data/.ssh/id_dsa2.
Your public key has been saved in /cs/oracle/data/.ssh/id_dsa2.pub.

The key fingerprint is:

b8:5c:8f:e9:4f:c0:ac:60:59:bc:ea:5c:68:b9:4b:10 oracle@DB Server

oracle@DB Server:/cs/oracle/data/.ssh $ [OraDB1]cat id_rsa2.pub > auth.temp
oracle@DB Server:/cs/oracle/data/.ssh $ [OraDB1]cat id_dsa2.pub >> auth.temp
oracle@DB Server:/cs/oracle/data/.ssh $ [OraDB1]cat auth.temp

No comments:

Post a Comment