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?

Martin Prikryl
  • 21,071
  • 9
  • 77
  • 157
Frequency
  • 3
  • 1

1 Answers1

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
  • 21,071
  • 9
  • 77
  • 157
  • 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 Aug 07 '16 at 13:04
  • Are you asking how to find a cygwin path for a given Windows path? Use `cygpath`. – Martin Prikryl Aug 07 '16 at 13:22