Reputation: 1522
I need to send a copy from server1 to server2 using ssh2. Both are using ubuntu, and I'm trying sending it with the scp command:
scp test.txt userName@server2_direction:/folder_destination
But I'm getting an error:
test.txt: No such file or directory
I tried putting the complete url: /users/asd/my_user/folder/test.txt, but it doesn't work either.
Any hints?
Upvotes: 0
Views: 624
Reputation: 64563
You are in the wrong directory on the source computer. Check if there is test.txt
in the current directory.
$ ls -l test.txt
Upvotes: 1