Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Escape @ in wget for FTP login

i need to download all files from an FTP address using wget. I'm currently using this code:

wget -m ftp://user:[email protected]

However, my username for accessing FTP is something like user@domain, so i would get

wget -m ftp://user@domain:[email protected]

The command fails because of the @ in the username field. How can i escape the @? I wasn't able to find any answer on Google.

like image 557
Mario Villani Avatar asked Feb 13 '23 07:02

Mario Villani


1 Answers

Solution was to use

wget -m --user "user@domain" --password "password" ftp://ip.of.old.host

As fedorqui suggested but adding ftp:// before ip.of.old.host.

Thanks!

like image 195
Mario Villani Avatar answered Feb 16 '23 03:02

Mario Villani