0
I'm connected to a remote host via SSH, I've read the rsync page and I understood that to transfer a file from my local machine to the remote host I have to do
rsync myHostname:path/to/file destination/path/on/remotehost
Now I retrieved my hostname with hostname
, say it is AA
, when I execute the above command I get:
ssh: AA: Name or service not known
What I am missing?
I'm using cygwin on W8.
-v does not change anything, and yes rsync can be accessed (in fact works locally) – JTulip – 2014-06-19T22:24:32.363
've tried to use the IP I've found using ipconfig under the section "IPv4" section, but if I use this rsync freeze on "connecting to IP_Address". Am I picking the wrong one? – JTulip – 2014-06-18T11:18:05.207
Make sure you specify the user that the transfer to sent to in that case.
rsync user@IP_ADDRESS/path /destination_path
. If you still have problems, would doing the transfer from the local machine work for you? – suspectus – 2014-06-18T11:36:32.193Yes, I'm already using user@IP, precisely my command is rsync -a user@IP:path/to/file /destinationPath. Unfortunately I'm not sure I can transfer from local to remote – JTulip – 2014-06-18T11:45:35.807
Two things - first is try -v (verbose) option in case that gives you some more indication of the error. Secondly, can user access rsync on the local machine? BTW would you be kind enough to upvote the answer ?(which has fixed your original problem I believe) thanks. – suspectus – 2014-06-18T11:58:27.313