How do you copy a file to your desktop from SSH server on Ubuntu?

  • 5
    -1 for not showing any research effort and being too ambiguous. What are the operating systems involved on both sides? Is it Ubuntu → Windows? Windows → Ubuntu? Ubuntu → Ubuntu?
    – slhck
    Jan 3, 2012 at 9:27

2 Answers 2


SCP is probably the easiest way:

scp username@server.com:remote/path/to/file.txt ~/local/path/to/file.txt

If your Desktop is Windows-based, use WinSCP.

WinSCP is an open source free SFTP client, SCP client, FTPS client and FTP client for Windows. Its main function is file transfer between a local and a remote computer. Beyond this, WinSCP offers scripting and basic file manager functionality.

enter image description here

  • 1
    Or the PuTTY version of scp - pscp.
    – tidbeck
    Jan 3, 2012 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.