0

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

1
  • What type of logic are you currently using for this task or what did you have in mind to complete this task otherwise. Aug 7, 2016 at 1:52

1 Answer 1

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.

2
  • Let's say remote is [email protected] 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
    Aug 7, 2016 at 13:04
  • Are you asking how to find a cygwin path for a given Windows path? Use cygpath. Aug 7, 2016 at 13:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .