I connect to my remote linux server using ssh on port 1024 but I can't seem to connect with rsync.
At the command line, when I try typing in:
rsync -avz --port=1024 <username>@<ip address>::<source file> <destination>
I get:
rsync: server sent "SSH-1.99-OpenSSH_3.9p1" rather than greeting
rsync error: error starting client-server protocol (code 5) at main.c(1171)
Any ideas what I'm doing wrong?
Try
That way, you specify that ssh on port 1024 will be used as the transport mechanism.
Try
That way, you specify that ssh on port 1024 will be used as the transport mechanism.
That seems to get me one step farther (it prompts me for the password) but then I get the following messages:
rsync: connection unexpectedly closed (0 bytes received so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(434)
From rsync documentation:
Hope it helps.
Tev -
Thanks for your help. I'm a bit confused. "ssh-user" I assume is the same username I use to ssh to my server. However, I've never set a "rsync-user". How do I know what that is?
Also, when logging in, I thought that the value just before '@' should be the ssh-user. If I put anything else there, I can't get past the password verification. I'm also confused as to why that documentation says 'module' for where the source is supposed to be...
Just another thought - isn't that for connecting to an rsync daemon? I didn't think that I had to do that.
nevermind. I just realized that I was supposed to use a single colon instead of a double. Thanks!