Em vez da sintaxe user:pass@hostname
, use switches. De wget --help
:
--ftp-user=USER set ftp user to USER.
--ftp-password=PASS set ftp password to PASS.
Exemplo:
wget -m --ftp-user=username --ftp-password=foo@bar ftp://ftp.hostname.com/file