Mount FTP server but password has "@" symbol [duplicate]
My hosting company makes all my usernames with a "@" in them.
curlftpfs user="[email protected]:pass" ftp://ftp.domain.com/ ~/domain/
For some reason I get in response
Error connecting to ftp: Couldn't resolve host 'domain.com:pass'
I think that it's trying to connect to [email protected] without the password
(because of the @ sign)
Solution 1:
cURL is interpreting everything after the first @ sign as the domain to connect to. What you need to do is either fool cURL into working without the first @ sign, or find some other way of telling CurlFtpFS your username.
The former may possibly be done by replacing the @ with the URL encoded %40 - it may or may not work - try it and see.
The other way can be to see if there is a --username
or --user
parameter to CurlFtpFS that can be used instead of including it in the URL. I am not familiar enough with CurlFtpFS to know if there is or not off hand. The manual pages should tell you if there is or not.
Solution 2:
I'm wondering if you are missing the -o
switch, so that your example above of:
curlftpfs user="[email protected]:pass" ftp://ftp.domain.com/ ~/domain/
should be:
curlftpfs -o user="[email protected]:pass" ftp://ftp.domain.com/ ~/domain/
Does that work?