I googled how to download images using terminal in ubuntu with wget. I found what I needed, but on the server, protected with .htaccess, there's no password. with
wget admin@http://server.com/filename.jpg
it returns: No route to hosts. When I set a password and type
wget admin:password@http://server.com/filename.jpg
everything's fine. However I am not allowed to use a password on the server. How to fix it, finding route?
Much easier:
wget --user="username" --password="password" http://xxxx.yy/filename.xxx
Try
wget --user=admin http://server.com/filename.jpg
instead.
Alternatively,
wget http://admin:@server.com/filename.jpg
may work instead.
Your syntax is actually wrong, as its:
wget http://user:pass@host/file
your username is outside the url, and was being treated as a hostname.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With