share
Unix & LinuxSCP from Remote Server to Windows Local Machine
[0] [3] Alex
[2020-04-14 16:45:29]
[ ssh scp file-copy ]
[ https://unix.stackexchange.com/questions/580044/scp-from-remote-server-to-windows-local-machine ]

I would like to copy files from a remote Unix machine to a local Windows machine. The remote machine requires a secure connection, and therefore the default Windows tools, such as FTP, don't work. I can run ssh on the local machine to log into the remote machine, but I am not able to run anything to copy the remote files to the local machine, since the local machine doesn't have scp. Is there a way to copy them while sshed into the remote machine? For example, by setting up a pipe to receive the contents of the remote file and save it onto the local machine.

[+1] [2020-04-14 17:46:29] user4556274

WinSCP [1] is a graphical file transfer utility for Windows that supports both scp and (by default) sftp, in addition to other file transfer protocols.

[1] https://winscp.net/eng/index.php

(2) And the author is a user of this site! - Freddy
1
[0] [2020-04-14 16:58:37] Sriram

If you have python on your windows machine, you can try this:

http://pypi.python.org/pypi/ssh4py

If you do not have python, simpler approach is to install putty Scp

https://it.cornell.edu/managed-servers/transfer-files-using-putty


2
[0] [2020-04-14 17:03:58] Jim L.

If you install PuTTY [1] that includes a command-line pscp utility, which is PuTTY's equivalent of scp. Documentation on how to use pscp is here. [2]

[1] https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
[2] https://the.earth.li/~sgtatham/putty/0.73/htmldoc/Chapter5.html#pscp

3