To specify a username and password for authentication, use --user and --ask-password arguments.
--user
--ask-password
$ wget --user some_user --ask-password https://somesite.com/private_stuff
Note:** Using --password is also an option but not recommended since the password can then be saved to BASH history, and can be looked by using command history. So instead of using --password one should prefer --ask-password instead.
--password
history
Source: StackOverFlowarrow-up-right
Last updated 1 year ago