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
    Commented Jan 3, 2012 at 9:27

2 Answers 2


SCP is probably the easiest way:

scp [email protected]: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
    Commented Jan 3, 2012 at 14:24

You must log in to answer this question.

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