Help please about SSHFS.

Forum home -> General chat -> View topic

Post

Posted
Rating:
#342 (In Topic #70)
Avatar
Standard member

SSHFS services.

Hi friends,

I'm from cuba and my english it's not good but i will tried to communicate with you.

I saw a video on your youtube channel about Mount Network Directories with SSHFS and was amazing, its work perfectly for me. But i would like to map this resource on my FSTAB file, for when the Ubuntu operating sistem is starting the resource will be mounted atumatically.

Please could you help me.

Regards.

 
Online now: No Back to the top

Post

Posted
Rating:
#344
Avatar
NOTS Staff

orlypr84 said

I saw a video on your youtube channel about Mount Network Directories with SSHFS and was amazing, its work perfectly for me. But i would like to map this resource on my FSTAB file, for when the Ubuntu operating sistem is starting the resource will be mounted atumatically.

Hi there. Personally, to accomplish this I would just use some sort of startup script calling sshfs, but since SSHFS is a FUSE filesystem, it is possible to mount it via fstab.

The issue will be authentication: since you normally have to type in your password when you call sshfs, you will need to have SSH keys set up in advance, so you can run "sshfs" without needing to enter a password. (Look up "ssh key-based authentication" for information about that.)

After that's done, I would try out some of the fstab entries on these pages:

https://askubuntu.com/questions/710149/how-to-convert-sshfs-command-to-fstab-entry
https://superuser.com/questions/669287/automount-sshfs-using-fstab-without-mount-a

If you can't get those to work, what kind of problems are you running into?
Online now: No Back to the top

Post

Posted
Rating:
#345
Avatar
Standard member
Hi.

After creating the ssh keys and access by ssh to the file server without username and password.
I wrote the following line in the FSTAB file and it worked correctly.

Thanks for your support, I am very happy.

fstab.jpg

df -h.jpg
Online now: No Back to the top
1 guest and 0 members have just viewed this.