Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fuse : invalid argument. when mounting.

I am trying to mount a drive of ec2 instance of amazon web server on my virtual linux machine using sshfs. The command I used is as below :

sameeksha@technician:~$ sudo sshfs -i $HOME/Downloads/amazonkey.pem [email protected]:/var/www $HOME/Documents

and the error that I get is :

fuse: invalid argument `/home/sameeksha/Documents'

I have tried to find the problem but I could only find this error occuring when using fuse. But I am not even using fuse here. Using the same command I was able to mount to the drive to my system. But this time strangely it is throwing this error.

Please share your views.

Thanks.

like image 841
Sameeksha Kumari Avatar asked Jun 07 '14 06:06

Sameeksha Kumari


1 Answers

I had this problem (also using an ec2 instance) and I found the answer here: https://www.chrisnewland.com/solved-sshfs-with-private-key-what-is-the-syntax-262

What sshfs takes as parameters is different than ssh. What you need is:

sudo sshfs -o IdentityFile=$HOME/Downloads/amazonkey.pem [email protected]:/var/www $HOME/Documents
like image 125
Joshua M Avatar answered Sep 19 '22 02:09

Joshua M