I am using the following in a cron file, to maintain a mirror of a database, at a remote site where I do not have access or control, beyond anon. ftp and rsync. Therefore my machine is only functioning as a client.
I would like to be able to run rsync over ssh which is supposed to be more robust
so I have set up
which produced output of ==>
indicating a timeout from ssh
I had followed the instructions for running rsync over ssh without a password, but this was for a Generic UNIX system and probably was not compatible with FreeBSD.
Could anyone say what the correct procedure should be.
Thanks!
P.S. The recommendations I followed was to do the following ---
I should add an expansion: The server does not require a password, probably because it is going through an anonymous mode, but using the '-e ssh' option in the rysnc command, a password is required apparently.
I added this because there are several solutions on the internet and this forum for passing the password with the rsync command, but they all seem to address the server!
Code:
/usr/local/bin/rsync -avvv --port=33444 ftp.filesource.org::ftp . >> rsynclog
so I have set up
Code:
/usr/local/bin/rsync -avvve ssh --port=33444 ftp.filesource.org::ftp . >> rsynclog
Code:
ssh: connect to host ftp.filesource.org port 22: Operation timed out
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [Receiver=3.0.7]
indicating a timeout from ssh
I had followed the instructions for running rsync over ssh without a password, but this was for a Generic UNIX system and probably was not compatible with FreeBSD.
Could anyone say what the correct procedure should be.
Thanks!
P.S. The recommendations I followed was to do the following ---
Edit /etc/ssh/ssh_config and uncomment the following lines:
Code:IdentityFile ~/.ssh/identity IdentityFile ~/.ssh/id_rsa IdentityFile ~/.ssh/id_dsa
I should add an expansion: The server does not require a password, probably because it is going through an anonymous mode, but using the '-e ssh' option in the rysnc command, a password is required apparently.
I added this because there are several solutions on the internet and this forum for passing the password with the rsync command, but they all seem to address the server!