Rsync With SSH Syntax?
I'm looking to try and use Rsync to push data from my local computer to a remote computer through SSH, using a specific key and a specific port and I'm struggling.
Code:
rsync -rdtvu --delete -e ssh -p 22 -i /path/to/sshkey /media/local/media/ user@192.168.0.1:/media/remote/dir/ Code:
Permission denied (publickey). Code:
ssh -p 22 -i /path/to/sshkey user@192.168.0.1 |
You need to place the args to the -e switch in quotes. So, you should have:
Code:
rsync -rdtvu --delete -e "ssh -p 22 -i /path/to/sshkey" /media/local/media/ user@192.168.0.1:/media/remote/dir/ Code:
Host 192.168.0.1 Cheers! |
Thanks for the reply and the free handy tip! :)
|
All times are GMT -5. The time now is 08:34 AM. |