My ssh to a host "sees" one file system; my scp sees a different one. How can this be the case, and how can I fix it. e.g.
$ ssh me@otherpc 'ls -l /tmp/media-files.txt' -rw-r--r-- 1 me me 194399 Apr 28 2022 /tmp/media-files.txt $ scp me@otherpc:/tmp/media-files.txt /tmp/ scp: /tmp/media-files.txt: No such file or directory
scpuse SCP or SFTP? (See "History …" here.) What happens when you tryscp -O …?-vs–etc. in the commands you have actually used in the console. (2) Usescp -v …. What is the line that starts withdebug1: Sending command:? (3) What is the output ofscp me@otherpc:'; ls -l /tmp/media-files.txt >&2' /tmp/?