Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux curlftpfs, password with symbols

I want to mount an FTP drive, but my FTP password contains "?!".

I enter the command:

curlftpfs myaccount:[email protected] 

but it gives me "bash: [email protected]: event not found"

How do I escape those characters?

like image 613
Mars Avatar asked Jan 22 '12 08:01

Mars


2 Answers

You can separate user and password from FTP URL/IP using user option below:

curlftpfs -o user='myaccount:mypassword?!' thefptserver.com

I found this option in curlftpfs manual and hope it helps!

Also found the same answer in this link https://superuser.com/questions/269006/curlftpfs-doesnt-work-for-a-username-with-a

like image 56
Felipe Crescencio Avatar answered Oct 06 '22 13:10

Felipe Crescencio


Enclose it in single quotes:

curlftpfs 'myaccount:[email protected]'

As you've discovered, the exclamation mark has a special meaning in bash: [email protected] stands for the most recent command that started with @thefptserver.com.

like image 27
NPE Avatar answered Oct 06 '22 11:10

NPE