Mount over sshfs. Questions

Dear all,

I would like to mount a remote partition using sshfs.

I am editing my fstab and I need help

What I want is to mount the files with read only permissions but being able to read everything there.
My lines now look like:

sshfs#username@host:/storage/Data        /home/username/Documents/Data/        fuse comment=sshfs,noexec,ro,allow_other,reconnect,transform_symlinks,BatchMode=yes,nonempty,noauto,ro 0 0

-Do you see any fatal here that might harm the files on the remote server?

  • I also recall that I need to do something with the sshfs keys as right now I get
read: Connection reset by peer

-What should I do for being mountable at boot time and mountable/unmountable from my “normal” user?

I would like to thank you in advance for your help

Alex

On Thu, 10 Jan 2013 13:46:01 +0000, alaios wrote:

> I would like to mount a remote partition using sshfs.

I use sshfs myself but only for quick connections - for something
permanent like this, I would recommend using NFS or SAMBA instead. sshfs
(and most FUSE filesystems for that matter) are convenient for ad-hoc
needs, but they’re not designed for this type of “permanent” use.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

If it’s a linux machine where the storage/Data folder is, I’d use NFS on that machine to export the folder, NFS client on the other one to mount it. Both can be done from Yast,

On 2013-01-10 21:26, Knurpht wrote:
>
> If it’s a linux machine where the storage/Data folder is, I’d use NFS on
> that machine to export the folder, NFS client on the other one to mount
> it. Both can be done from Yast,

However, NFS does not encrypt connections, sshfs does. The later can
probably be used over internet.


Cheers/Saludos
Carlos E. R.

On Thu, 10 Jan 2013 23:03:30 +0000, Carlos E. R. wrote:

> On 2013-01-10 21:26, Knurpht wrote:
>>
>> If it’s a linux machine where the storage/Data folder is, I’d use NFS
>> on that machine to export the folder, NFS client on the other one to
>> mount it. Both can be done from Yast,
>
> However, NFS does not encrypt connections, sshfs does. The later can
> probably be used over internet.

I’d use a VPN for securing the connection over the 'net myself.

FUSE-based filesystems lack a fair amount of important features used in
true multi-user networked file systems, as you know. While the mount
point in question is RO, it’d be better to implement a proper networked
file system rather than use something that’s not intended for heavy use.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-01-11 00:09, Jim Henderson wrote:
> On Thu, 10 Jan 2013 23:03:30 +0000, Carlos E. R. wrote:

>> However, NFS does not encrypt connections, sshfs does. The later can
>> probably be used over internet.
>
> I’d use a VPN for securing the connection over the 'net myself.

Yes, that’s the most powerful method. But ssh is far easier to setup.

> FUSE-based filesystems lack a fair amount of important features used in
> true multi-user networked file systems, as you know. While the mount
> point in question is RO, it’d be better to implement a proper networked
> file system rather than use something that’s not intended for heavy use.

The NTFS is also fuse based… I don’t know.


Cheers/Saludos
Carlos E. R.

On Thu, 10 Jan 2013 23:19:00 +0000, Carlos E. R. wrote:

> On 2013-01-11 00:09, Jim Henderson wrote:
>> On Thu, 10 Jan 2013 23:03:30 +0000, Carlos E. R. wrote:
>
>>> However, NFS does not encrypt connections, sshfs does. The later can
>>> probably be used over internet.
>>
>> I’d use a VPN for securing the connection over the 'net myself.
>
> Yes, that’s the most powerful method. But ssh is far easier to setup.

Perhaps, but there’s “getting the job done as a hack” and “getting the
job done right”.

>> FUSE-based filesystems lack a fair amount of important features used in
>> true multi-user networked file systems, as you know. While the mount
>> point in question is RO, it’d be better to implement a proper networked
>> file system rather than use something that’s not intended for heavy
>> use.
>
> The NTFS is also fuse based… I don’t know.

FUSE itself isn’t the limiting factor, it’s the implementation. sshfs
doesn’t implement things like file locking/file sharing, concurrent use,
etc. It’s a quick-and-dirty filesystem. It has its uses (like I said, I
use it myself when I need a quick ad-hoc connection to browse and copy
files), but as a permanent remote filesystem, it’s not an ideal choice.

Which is why I’m suggesting to the OP that he implement a solution that’s
better for a long-term solution, rather than implementing a hack as a
permanent solution.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C