[thelist] backups / disk space / rsync

patrick pms at stoutstreet.com
Fri Mar 16 10:03:41 CDT 2012


On 3/15/2012 5:15 pm, Bob Meetin wrote:
> On 03/05/2012 01:32 PM, patrick wrote:
>> On 3/5/2012 3:25 pm, Bob Meetin wrote:
>>> So ... How do you feed rsync the username and password?
>>
>> Use SSH and private key
>
> I'm still trying to get this working.
>
> 1. rsync and ssh are installed and work
> 2. I did some googling for SSH and private key and found a few 
> tutorials such as: http://www.ece.uci.edu/~chou/ssh-key.html
>
>    * Step 1:
>      % *ssh-keygen -t dsa*
>      Generating public/private dsa key pair.
>      Enter file in which to save the key (~/.ssh/id_dsa): (just type 
> return)
>      Enter passphrase (empty for no passphrase): (just type return)
>      Enter same passphrase again: (just type return)
>      Your identification has been saved in ~/.ssh/id_dsa
>      Your public key has been saved in ~/.ssh/id_dsa.pub
>      The key fingerprint is:
>      Some really long string
>      %
>    * Step 2:
>      Then, paste the content of the local ~/.ssh/id_dsa.pub file into 
> the file ~/.ssh/authorized_keys on the remote host.
>
> For the Enter passphrase it would not allow a blank phrase, so I fed 
> it a password and it completed, created the ~/.ssh/id_dsa.pub file.  I 
> then ftp that file to the remote host to: ~/.ssh/authorized_keys.
>
> Then I tried to ssh to the remote host, also tried an rsync command 
> and it still is requesting password.
>
> rsync -avz /home/$local_host/bin/test/ 
> $remote_account@$remote_domain.com:/home/$remote_account/bin/test/
>
> Yes I used real account names, not $remote_account, etc.
>
> -Bob
>


Check your sshd_config and ensure you have

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys



-- 

patrick sanders
http://www.stoutstreet.com
web sites that fit



More information about the thelist mailing list