Home » Questions » Computers [ Ask a new question ]

Homeserver for the command "scp user@server:file localhost@server:mycomp/"?

Homeserver for the command "scp user@server:file localhost@server:mycomp/"?

Problem: to get the cammond "scp file user@server:" (source) work vice versa. I need a server on my local machine so I can copy files to-and-fro like:

Asked by: Guest | Views: 162
Total answers/comments: 1
Guest [Entry]

"The second argument is the ""destination,"" which can be a server and a path, or just a path.

scp file user@server:newfile will copy ""file"" to the server as ""newfile""

scp user@server:file newfile will copy ""file"" from the server as ""newfile"" <-- This is what you are looking for.

scp user@server1:file user@server2:newfile will copy ""file"" from server1 to server2 as ""newfile"""