-1

I looked at a previous question How to upload local file to server through Linux terminal and I am still having trouble performing the upload. I have downloaded a file to my computer and I am looking to upload this to my server.

The file name is bomb.tar.

I went with:

scp bomb.tar tim@example.com:. 

I am getting an error there is no such file or directory, is there more that I would need to add on to the file name?

tnaught
  • 13

1 Answers1

2

The first parameter (bomb.tar) is probably not located in the current work directory you're at uploading time. To make sure you upload the file, use absolute paths like for instance:

scp /home/yourlogin/bomb.tar tim@example.com:.
nKn
  • 5,832