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?
Linux – How to download files from a UNIX server via SSH to the desktop
command linelinuxsshunix
Related Solutions
If you can ssh into the surpasshosting.com machine, then you can do it, but you need physical access to both machines to do it.
Let's call the machine you want to remote desktop into "work" and the machine you want to remote desktop from "home", and the surpasshosting.com machine "proxy".
- generate a key on the work computer with puttygen. push the public key to the proxy. If you have shell access, it goes into the ~/.ssh/authorized_keys file. Make sure the authorized_keys file's permissions are 700.
- Before you leave your 'work' computer, putty into 'proxy', and create a remote tunnel to local port 3389. You can use port 33389.
- When you get to the home computer, puttygen a key like you did on the work computer and push it to the proxy.
- now putty into the proxy from your home computer and create a local tunnel from local port 33389 into remote port 33389.
- Finally, from your home computer you should now be able to remote desktop into localhost:33389 and the packets should end up on work:3389.
If you have two computers at the 'work' side, you can test all this by using another computer there as the 'home' computer. Then when you have it working go to the 'home' computer.
Also, consider using the "Enable TCP keepalives" option so that the connection from 'work' to 'proxy' does not exit over time.
My 'proper' solution would be to find and fix what causes the problem, but these things might work as workarounds:
- use split ( man split -- split a file into pieces). It seems to be installed on most unix systems.
- Split the file via dd (dd if=inputfilename of=file_part0 skip=0 bs=500MB). (repeat with skip=1 and a different file name.)
- Use a program which can resume downloading. FTP would work (but eww. Plain text passwords, separate control and data connection which do not play nice with most firewalls)
- Cheat and move the file to a web directory. Most brosers supports resuming a download,
Best Answer
You can use winscp.