Tuesday, 23 January 2018

How to ssh Without Password

Here we have done send data from one server to another server by using rsync command without password for ssh its also same



    1. Test rsync over ssh (with password):

    rsync -avz -e ssh /home/test/ root@192.168.0.125:/backup/test/

    2. ssh-keygen generates keys.

    $ ssh-keygen

    Enter passphrase (empty for no passphrase):

    3. ssh-copy-id copies public key to remote host

    Use ssh-copy-id, to copy the public key to the remote host.

    ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.125

    4. Perform rsync over ssh without password

    ssh 192.168.0.125

    Perform the rsync again, it should not ask you to enter any password this time.

    rsync -avz -e ssh /home/test/ root@192.168.0.125:/backup/test/

No comments:

Step-by-step OpenLDAP Installation and Configuration on server

This tutorial describes how to install and configure an OpenLDAP server and also an OpenLDAP client. Step by Step Installation and Conf...