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?
You can use winscp.
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.
Grab a copy of WinSCP; it's free/open source SFTP (and other protocols) client.
pscp Is also a possibility (from the putty suite)
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
Filezilla is also an OSS option.
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.
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.