needed link howto login with ssh no passwd for rsync

Discussion in 'Server Operation' started by GioMBG, Mar 31, 2012.

  1. GioMBG

    GioMBG New Member

    Hi All,
    pretty sure that here there is the tutorial I'm searchin' like:
    how to login from server to server without input passwd to use with cron and rsync
  2. sjau

    sjau Local Meanie Moderator

    1.) On the client (the computer that wants to do the login into another computer) go to
    cd ~/.ssh
    Check if there's is already a file

    If that file does not exist, create a public and private key by running this command:
    ssh-keygen -t dsa
    2.) Copy the public key to the "remote" computer where you want to login:
    ssh-copy-id -i .ssh/ [email protected]
    [email protected] is the user on the remote computer where you want to login and server is the address or domain name of it

    3.) After successfully copying it with ssh-copy-id, you can just ssh to that remote computer:
    ssh [email protected]
    and you won't be prompted again.

    And with rsync you'd just do:
    rsync -[OPTIONS] -e "ssh" /path/to/local/directory [email protected]:/path/to/remote/directory

Share This Page