How to use ssh/scp without password on CentOS 6.4

On server (192.168.0.2):

Generate keys:

# ssh-keygen -t rsa

press enter for all

Copy the public key onto the other server (192.168.0.3)

# ssh-copy-id -i /root/.ssh/id_rsa 192.168.0.3

Now you should be able to ssh/scp to 192.168.0.3 on 192.168.0.2 without password.

Advertisements
This entry was posted in Linux Admin Basics. Bookmark the permalink.

One Response to How to use ssh/scp without password on CentOS 6.4

  1. Anonymous says:

    not working for centos 6.5 i think it’s a bit old
    Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s