Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Auto ssh from PROD to DR with no password

Beauty_and_dBestOct 26 2017 — edited Nov 1 2017

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

This post has been answered by Beauty_and_dBest on Nov 1 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2017
Added on Oct 26 2017
12 comments
403 views