I have a VM in Azure. And a mac at home. I am currently SSHed into my Azure VM from my Mac. I am trying to copy a file from my Azure VM to my home Mac. And the command fails.
sudo scp azure/file/path /Users/[user]/Downloads
I’m getting this error:
cp: cannot create regular file ‘/Users/[user]/Downloads’: No such file or directory
I don’t understand why its not copying the file. Based on the error it seems to think I’m trying to copy the file onto the VM at that path, which doesn’t exist on that VM. Only on my home Mac.
Is this not the right command for a simple file copy?
Nick Brown is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.