Secure recursive copy from machine on different network to local machine running Cygwin

0

1

If I ssh from Cygwin into another machine that is on a different network, how do I conduct a recursive copy to my machine?

Frequency

Posted 2016-08-07T01:02:42.677

Reputation: 3

What type of logic are you currently using for this task or what did you have in mind to complete this task otherwise. – Pimp Juice IT – 2016-08-07T01:52:45.573

Answers

0

Use sftp (or scp), not ssh to download files.

Withing sftp, use get -r /remote/path /local/path command.

If your question was how to initiate a transfer from an SSH terminal connected to a remote machine back to the local machine, you cannot. Of course unless you have an SSH server running on the local machine.
See also How to SCP from linux server to Windows client.

Martin Prikryl

Posted 2016-08-07T01:02:42.677

Reputation: 13 764

Let's say remote is Username@Remotehost.com and I don't know what local is (a windows machine). How do I find out what local is? Thanks. By the way, I am doing this on local on Cygwin. – Frequency – 2016-08-07T13:04:04.783

Are you asking how to find a cygwin path for a given Windows path? Use cygpath. – Martin Prikryl – 2016-08-07T13:22:13.977