Mounting FTP server as /backup
I want to be able to mount an ftp account to a local folder, I have set up a ftp server that is working fine, I have tested it with a few windows ftp clients and it works fine.
I am trying to use CurlFtpFS to mount it to /backup as I know it is supported but am running into an error I cant get around. I have tested that my box can access the server using the ftp command, see below Code:
root@Fileserver:/# ftp 192.168.1.254 Code:
root@Fileserver:/# curlftpfs ftp://192.168.1.254 |
curlftpfs doesn't appear to be maintained for the last 2.5 years. I suggest you use sshfs instead, as you can use your standard ssh server and don't need clear text passwords.
|
Problem solved
CurlFtpFS does not seem to support $ in passwords, I used the -v option to debug, see below Code:
root@Fileserver:~# curlftpfs -v ftp://ftpuser:ftpPa$$w0rd@192.168.1.254 /backup Code:
root@Fileserver:~# curlftpfs -v ftp://test:test@192.168.1.254 /backup |
Your problem was that '$$' is a bash variable which expands to the current process id (that'd be the pid of your bash shell as you ran it, which looks to have been 4150) You could try enclosing the username/password in single quotes to prevent it getting expanded. You should probably quote it anyway to prevent other problems like this.
|
All times are GMT -5. The time now is 11:31 AM. |