I can scp files to a remote host, but if I try to scp -r
a directory it does not work
scp -r mydir [email protected]:/where/the/dir/has/to/go/
scp: realpath /whatever/mydir: No such file
scp: upload "/whatever/mydir": path canonicalization failed
scp: failed to upload directory cf2t to /where/the/dir/has/to/go/
I thought it was some issue with globbing, so I quoted different parts of the damn command to no avail.
realpath mydir
give any errors or do anything funny? – Sheepwalkscp
really what you think, or maybe an alias or shell function? Do atype -a scp
. Aside from this, your command does not use anything tricky specific to zsh. In particular you don't do any globbing, and as long as the path does not have spaces or other characters specific to the shell, you don't need to quote anything. With this type of error, you better post the exact path name which you have used. – Easeltype -a scp
scp is an alias for noglob scp_wrap
scp is /usr/bin/scp
– Hydroxyl