Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Newbie here, I just got SSH access to my shared hosting server (unix). I am current in a directory on the server where there is a file called images.zip. I want to download this to my desktop (I am running windows locally if that matters). Which command do I need and what is the syntax?

share|improve this question
add comment

migrated from serverfault.com May 14 '11 at 3:57

This question came from our site for professional system and network administrators.

8 Answers

You can use winscp.

share|improve this answer
    
Is there no built in command to do this, for example to copy a file I would do cp file.html file_copy.html. Is there no such default way of doing a download in Unix? It just seems like such a common task. –  James May 14 '11 at 3:55
    
you are talking about the scp command. But since you are using a windows client the command is not available. –  Anand Jeyahar May 14 '11 at 4:15
3  
@James, for some reason, the ability to ssh to a server or scp a file is consistently missing from each version of Windows. –  Xenoactive May 14 '11 at 4:20
    
@James: i missed out the Cygwin option. See Johan's answer –  Anand Jeyahar May 16 '11 at 9:43
add comment

For completeness, if you're on a Mac or Linux, you can simply open up a terminal and execute sftp <uname>@<host>. And then either cd to the path or execute a get <path> command to download the file.

There's also SCP you could use to directly download the file.

share|improve this answer
add comment

Grab a copy of WinSCP; it's free/open source SFTP (and other protocols) client.

share|improve this answer
add comment

pscp Is also a possibility (from the putty suite)

share|improve this answer
add comment

Strange,No-one mentioned PSFTP

type help for a list of commands,

what i would typically do is to

lcd(change local directory)

lpwd(local present working directory)

cd PATHNAME(to the destination directory)

get FILENAME (will download the FILENAME)

dats about that

share|improve this answer
add comment

Filezilla is also an OSS option.

share|improve this answer
add comment

Since you are on windows, install something like cygwin so you get a bash terminal to work in.

Then you can use scp in the same was as on your unix server.

share|improve this answer
add comment

If you want to do the copy from your remote server, you need to set up some kind of server on your desktop to be able to push the file.

If you want to pull it from your desk many possibilities are offered to you :

  • WinScp: provides a GUI for directories browsing and copy over ssh (scp copy)
  • pscp: Provided on the PuTTY site, it gives you a command line interface (usable with cmd.exe provided you've set up the PATH environment variable)

If you want other tools, you can find in other answers :

  • FileZilla: has a GUI to use SFTP
  • Psftp: equivalent of pscp (command line) for the SFTP protocol.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.