My dev machine runs on Fedora (36).
Recently I attempted to scp a file to a remote server (CentOS 7) and got a cryptic error message:
scp: dest open(""): No such file or directory
The command looks something like:
scp -C foo.ext user@internal-vpn-ip:~/
Nothing out of the ordinary, have done this many times over the years without issue. Strange, I thought, everything's up & running, yet scp can't find the remote path. Experimenting a bit I expanded the remote user path:
scp -C foo.ext user@remote-ip:/path/to/user/
and voila, it worked!
The question is, why does ~ path expansion no longer work?