I'm on mac osx getting a file from a remote server. I run the following command:
scp remoteusername@remotehostip:/home/username/file.tar ./Users/localusername/Documents/specialdir
I get the response
scp: /home/username/file.tar: no such file or directory
However when I ssh into the remote host and run
cd /home/username ls
file.tar is displayed. I have full read/write permissions for the directory/files. This is run in a new terminal (ie I am not already logged in via ssh to the remote host) What am I doing wrong?
I worked around it using the * wildcard..although I'm still not sure what the root issue is/was.