11gR1
OL6
I want to copy achivelogs from PROD to DR using no password ssh or scp command.
I tried to setup the following to do it:
Given: i have linux userid "oraprod" at PROD and DR servers.
1. Create a public ssh key, if you haven’t one already.
Look at ~/.ssh. If you see a file named id_dsa.pub then you obviously already have a public key.
If not, simply create one using ssh-keygen -t dsa.
2. Make sure your .ssh dir is 700:
chmod 700 ~/.ssh
3. Get your public ssh key on the server you want to login automatically.
A simple scp ~/.ssh/id_dsa.pub remoteuser@remoteserver.com: is ok.
4. Append the contents of your public key to the ~/.ssh/authorized_keys and remove it.
cat id_dsa.pub >> .ssh/authorized_keys while at your home directory.
But still I am asked with password when I do ssh or scp
Please help.....
Kind regards,
jc