Score:2

How to copy files from an ssh machine to my local pc?

co flag

I'm connected to a ubuntu linux box using ssh -X 'username@institution'

I'm confused on how to copy a file from the remote linux box to my local PC, say the Documents folder. I'll be transferring from Ubuntu -> Windows.

I'm aware of the

sftp

command but I'm not sure how to use it to do this

ar flag
The sftp works like the regular ftp.
Roberto_1986 avatar
co flag
Yes, but what is the command? It keeps looping back to ubuntu and won't download to my windows machine
marcelm avatar
cn flag
What are you using for an SSH client? Clients like PuTTY and WinSCP have sftp functionality built in.
Score:4
ar flag

Basic sftp tutorial

Use the command:

sftp username@institution

This will take you to the sftp prompt like:

Connected to institution.
sftp> 

Now type help like this:

sftp> help

This will show you all the commands you can use at this prompt. Use the get command to download a file from the Ubuntu to Windows:

sftp> get mybigfile.txt

Finally use the quit command to return home:

sftp> quit

Here is a more detailed tutorial

Hope this helps

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.