Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My hosting company makes all my usernames with a "@" in them.

curlftpfs user="user@domain.com: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 user@domain.com without the password
(because of the @ sign)

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

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.

share|improve this answer
    
holy crap, I did this command sudo curlftpfs -o allow_other user%40domain.com:pass@domain.com ~/domain/ And now for some reason I can't do an "ls" on my home directory! –  Asaf Apr 10 '11 at 11:44
2  
@Asaf: When you run ls, it calls stat() on each item in the directory; when it reaches ~/domain, it has to wait until curlftpfs responds. (For this problem, I usually put all remote mountpoints in a separate directory, such as ~/fs/ or ~/mnt/.) Since curlftpfs is FUSE-based, you can kill its process if it hangs for too long. –  grawity Apr 10 '11 at 13:19
add comment

I'm wondering if you are missing the -o switch, so that your example above of:

curlftpfs user="user@domain.com:pass" ftp://ftp.domain.com/ ~/domain/

should be:

curlftpfs -o user="user@domain.com:pass" ftp://ftp.domain.com/ ~/domain/

Does that work?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.