I am trying to copy a file over from my machine to my personal space on a university server. On my machine, the file is located at
If I connect to the server with
ssh firstname.lastname@example.org, and then run
pwd, it prints
/homes/karnivaurus. If I run
ls, it just displays one directory,
foo. What I want to do then, is to copy this file over to the directory
So, after exiting the ssh, I enter the local home directory
/home/karnivaurus. I then run the command
cp paper.pdf email@example.com/foo/paper.pdf, but this returns the error message
cp: failed to access ‘firstname.lastname@example.org/homes/karnivaurus/paper.pdf’: Not a directory. I have also tried running
cp paper.pdf email@example.com/homes/karnivaurus/foo/paper.pdf, but this gives me the same error message.
What am I doing wrong?