Linux.com

indentity file issues

Posted by: Anonymous Coward on September 10, 2006 08:17 AM
After following the directions I'm able to issue this command and reach my remote server w/out a password.
<tt>ssh -i ~/.ssh/rsync-key user@remotehost.com</tt>
but I get an error if I try:
<tt>rsync -avz -e "ssh -i ~/.ssh/rsync-key"<nobr> <wbr></nobr>/local/dir/ user@remotehost.com:/remote/dir/</tt>
The error is:
<tt>Warning: Identity file ~/.ssh/rsync-key not accessible: No such file or directory.</tt>
Why would the first work but not the second?

#

Return to Making secure remote backups with Rsync