Link to home
Start Free TrialLog in
Avatar of TokenHash
TokenHash

asked on

copying via SSH using Cygwin

Syntax for command line to copy a directory from a RED HAT server which I have SSH access too.

I have Cygwin installed on a Windows pc and want to copy a directory from a linux pc via SSH to the local windows D drive. can anyone help with the syntax required
ASKER CERTIFIED SOLUTION
Avatar of Kerem ERSOY
Kerem ERSOY

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tintin
Tintin

The scp syntax for cygwin is identical to using scp on any other Linux or Unix system.

cd D:
scp user@redhat.server:/path/to/file .
Tintin:
> The scp syntax for cygwin is identical to using scp on any other Linux or Unix system.
...
> scp user@redhat.server:/path/to/file .

If you read the original question clearly. He wants to copy "directories" not "files". This is not I've succested command line scp.
OK.

scp -r user@redhat.server:/path/to/dir .
TinTin: Recusrive copying with scp cause problems with scp. This is why I suggested rsync and WinSCP instead.
Thanks
What type of problems?  I've never encountered any problems using cygwin scp to a Unix/Linux box.