In this short Topic i will provide the 3 steps to create SSH ( User Equivalence ) Without Password you can find lot of way but it’s just simple way and don’t need much steps to create SSH between server.
Introduction for SSH, “Ssh is a secure remote login program that is similar to rlogin and rsh. The major difference between ssh and other remote login programs is that ssh encrypts the password and other information so that it can’t be “sniffed” by others as you type it. Ssh also sets up X11 connections, so the DISPLAY variable does not have to be set on remote machines. Scp is another program used to securely copy files from one host to another.”
Example To Use SSH in Oracle : Real Application Cluster ( RAC ).
The Steps :
Create New SSH Key
[email protected]$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):[Enter key]
Enter passphrase (empty for no passphrase): [Press enter key]
Enter same passphrase again: [Pess enter key]
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:
This Step will Just copy the password File Generated in Step 1 to Server 2.
[email protected]$ ssh-copy-id -i ~/.ssh/id_rsa.pub You need to use ip/hostname to another server.
[email protected] password:
Now try logging into the machine, with “ssh ‘remote-host'”, and check in:
to make sure we haven’t added extra keys that you weren’t expecting.
[email protected]$ ssh Server2
Last login: Thu Mar 28 01:54:21 2013 from primora10g
[Test it no password]