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.