When I don't have SSH access to a server, I usually download stuff over FTP, like this:
wget -r ftp://user:pass@server/path/to/dir
How do I keep my password more secure? I don't like that the password is in the command, but when I try something like this:
wget -r ftp://user@server/path/to/dir
it doesn't work. It gives me "Login incorrect".
This also does the trick:
ask_password = on/off
can also be declared in your~/.wgetrc
.You can put your credentials in
~/.wgetrc
like so:Depending on your needs, it is also possible to use a different location for this configuration file: