Suppose I ssh to a server in Windows machine and I want to scp file myLocalComp:someDir, is there something automatically built-in or do I need to set up a SSHD for this in Windows?

2 Answers

If you type scp on the remote server, you will need indeed an sshd server on the windows side for scp to be able to make an SSH connection from the remote server (where scp is) to your computer and then transfer the file.

Alternatively, if you have SSH access to this remote server, you could use a tool like WinSCP which will give you the possibility to retrieve a file from this server over SSH in a way very similar to FTP and without the need to install an SSH server on your side.

Edit: I forgot to mention pscp which is a command-line tool made by the same authors as Putty and available on the official Putty download page. I personally prefer to use WinSCP but pscp will do the work too.

9

Download PSCP from

This is a windows application.

You can then do some like this scenario.

SOURCE FILES /home/user/documents/* DESTINATION d:\backup\user\documents

pscp -r user@192.168.x.y:/home/user/documents/* d:\backup\user\documents

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy