Home » Questions » Computers [ Ask a new question ]

Copying remote file to a specified path on local desktop using scp

Copying remote file to a specified path on local desktop using scp

I was trying to copy a file from remote server using SCP but its giving the following error.

Asked by: Guest | Views: 49
Total answers/comments: 2
Guest [Entry]

"If you are using Cygwin's scp, you might try using the Cygwin paths:

scp user@host:main.php /cygdrive/c/main.php

You could also use the pscp and psftp commands included in the PuTTY package – they are native Win32 programs and won't complain about Windows paths.

Alternatively, WinSCP is a good SCP/SFTP client (primarily a GUI, though also comes with a command-line tool)."
Guest [Entry]

"@grawity is right. In the future, you can run also

pwd

to find out what directory you're in, so that you can figure out the correct path to the directory you want according to cygwin."