Escape @ to wget for FTP login

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

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

However, my FTP username is something like user @domain, so I would get

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

Command error due to @ field in username field. How can I avoid @? I could not find an answer on Google.

+4
source share
1 answer

The solution was to use

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

As fedorqui said, but adding ftp: // to ip.of.old.host.

Thank!

+6
source

Source: https://habr.com/ru/post/1535333/


All Articles