Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to download a file from a location in internet to RHEL5 server running at runlevel 3 (without GUI)?

Like, can we use sftp to directly download files from a website?

Or, do we have any commands for downloading a file from an address like to RHEL5 server?

share|improve this question
while using wget I get teh following error. wget Resolving Connecting to||:443... connected. HTTP request sent, awaiting response... 403 Forbidden 03:20:51 ERROR 403: Forbidden. (Note that a uname and pword is required for login and I gave it in the command line) – A.A Philip Oct 29 '09 at 7:32

I would suggest using wget. In a shell on the server (possibly via SSH) execute:


wget should be installed by default, if not, you can install it with:

yum install wget
share|improve this answer
httpS is http over SSL, nothing to do with SSH – drAlberT Oct 28 '09 at 15:41
@AlberT: What's your point? – womble Oct 28 '09 at 15:47
@AlberT, I understand that https has nothing to do with SSH. But if this is a server without a GUI, it's possible that it doesn't have a terminal at all, in which case to execute commands you need to SSH in. The poster didn't make it clear how he is accessing the server. – Josh Oct 28 '09 at 15:55

wget, curl, ncftp, elinks, and lynx will all accomplish what you want to do.

share|improve this answer

wget is probably the easiest:

$ wget
share|improve this answer

wget was already mentioned, so another way is to actually browse to the website using one of the text mode browsers - links or lynx

share|improve this answer

Your Answer


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