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”.
You can put your credentials in
~/.wgetrclike so:Depending on your needs, it is also possible to use a different location for this configuration file: