Skip to content
Advertisement

Tag: scp

SCP gives “File or directory not found”

I am having an issue. I am using the SCP command to transfer files from my desktop of my mac osx too my virtual server. The thing is I ran the command and successfully transferred one file from my desktop over to the server, no problem. So i use the same command which is: scp filename_I_want_to_transfer user@serverip: So basically that

How to scp back to local when I’ve already sshed into remote machine?

Often I face this situation: I sshed into a remote server and ran some programs, and I want to copy their output files back to my local machine. What I do is remember the file path on remote machine, exit the connection, then scp user@remote:filepath . Obviously this is not optimal. What I’m looking for is a way to let

scp a folder to a remote system keeping the directory layout

I have a large directory tree with hundreds of nested sub-folders. I need to copy only 4 folders and their contents to a remote system, but I need to destination folder structure to be kept the same. E.G. I want to copy ./test/sub1/subsub1/* to a target such as user@system:~/test/sub1/subsub1/* but I do not want to copy subsub2 or sub2. I

Advertisement