I have a problem with rsync over SSH. I mean the way of entering a password. I can't enter it immediately after entering the line:
$ rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
and i have no idea how to do it. Any ideas?
I have a problem with rsync over SSH. I mean the way of entering a password. I can't enter it immediately after entering the line:
$ rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
and i have no idea how to do it. Any ideas?
Put
eval `keychain --eval id_rsa` #Or id_dsa / whatever you key is called
In your .bash_profile
and log in to a terminal some ware. (Or you could just run it plain)
Then stick it in you script (you will have to run it onesome ware else as stated before unless your script is interactive)
You will need to install keychain and read a tutorial on making keys with ssh-keygen beforehand.
This is a rough answer for a rough question.