Linux Download Password Protected Large ISO Images [ Authentication Credentials ]

I‘m trying to download an ISO image for Enterprise Linux from RHN or Novell Suse. Both providers have placed ISO images behind paywall. I need to provide authentication credentials before downloading all files. How do I download ISO files using the wget command with user name and password?

You can use the Linux wget command to download large ISO files. The wget can provide user name and password for HTTP/401 Unauthorized headers using the following syntax:

wget --http-user=RHNUserName --http-password=RHNPassword ''


wget --http-user=NovellUserName --http-password=NovellPassword ''

In this example, I’m downloading SLES 11 SP1 AMD64 workstation from my personal account, enter:

wget --http-user=MyUSERID --http-password='SecretPassword' ''

Sample outputs:

Connecting to||:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2011-07-28 07:35:00--
Connecting to||:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Reusing existing connection to
HTTP request sent, awaiting response... 200 OK
Length: 4605421568 (4.3G) [application/octet-stream]
Saving to: `SLES-11-SP1-DVD-x86_64-GM-DVD2.iso.1'

45% [=============================================>                                                       ] 2,09,79,89,128  527K/s  eta 23m 36s 

Please note that user name and password may be intercepted by a third-party while in transit. So make sure you use https version for downloading files.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.