In my terminal shell, I ssh'ed into a remote server, and I cd
to the directory I want. Now in this directory, there is a file called table
that I want to copy to my local machine /home/me/Desktop
. How can I do this?
I tried scp table /home/me/Desktop
but it gave an error about no such file or directory. Does anyone know how to do this?
Thanks
For example, your remote host is example.com and remote login name is user1:
scp [email protected]:/path/to/file /path/to/store/file