Help please about SSHFS.
Posted
#342
(In Topic #70)
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.
Posted
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.
From “Help please about SSHFS.”, July 13th 2019, 2:28 PM
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?
Posted
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.
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.
1 guest and 0 members have just viewed this.