Search code examples
ubuntusshcopyscptransfer

Copy files using SSH


I'm trying copy file from remote server from my pc using SSH connections, but don't work.

scp userremote@serverremotename:filename /home/user/Desktop/

The result is: No Such file or directory

What is wrong??

Tks, Rod


Solution

  • Give Full path of the filename. If it is in tmp folder you can write like this

    scp userremote@serverremotename:/tmp/filename /home/user/Desktop/