rsync with server on non-standard SSH port
Recently, I've moved some of my web sites over to a hosting service with WebHostingBuzz. WebHostingBuzz provides SSH access, except it uses a non-standard port (not port 22). So when I do rsync to transfer files, I had to use the following form:
rsync [OPTION]... rsync://[[email protected]]HOST[:PORT]/SRC [DEST]
Problem is, rsync kept returning the following error message:
rsync: server sent "SSH-2.0-OpenSSH_3.9p1" rather than greeting
I was stumped for a while. So I did a search for 'server sent "SSH-2.0-OpenSSH_3.9p1" rather than greeting' on Google. The only site it returned is a German page titled, "SELFHTML Forumsarchiv / 2007 / März / rsync mit anderen Port". After a bit of guessing and BabelFish translation, I figured out that you have to specify the remote shell with the "-e" switch. So the final command that worked is
rsync [OPTION] -e "ssh -p PORT" ... [[email protected]]HOST:SRC [DEST]
thanks! didn't find the answer on the man also
Thank you, I'd encountered the same issue and got the issue resolved follow the approach mentioned
Thank you for posting this! They should really add this to the man, its still not there in 2017...
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
Messages, files, and images copyright by respective owners.
26 Users Online
Copyright © 2004 - 2017. All Rights Reserved.