Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Can anyone quickly explain the technical difference between these two methods?

  • Going to Places -> Connect to Server and select SSH (in GNOME)
  • Using sshfs in terminal

This probably boils down to GVFS (using FUSE) vs. FUSE "directly" (if this is a reasonable comparison). FUSE I somewhat understand what is, but GVFS is a bit cryptic.

Both have advantages and disadvantages for me. The former allows easy access to the GUI and you get the opportunity to create a bookmark, but sends you to the root folder of the remote file system (unless you specify otherwise) and mounts in ~/.gvfs/sftp on ... / which an be a bit cumbersome if you want to enter through local terminal. The latter must be done via the terminal (as far as I know) but you can choose which folder you want to "jump into" and one can choose for yourself where this will be mounted on your local filesystem.

One thing that I find very annoying is that Vim/Gvim destroys permissions on files upon writing if I use GVFS. E.g. if a file permissions has 644, this is set to 600 after Vim/Gvim has edited it. I've seen various bug reports from 2008 on this but I still experience it.

share|improve this question
3  
Maybe you could be a bit more specific about what you want to know ? Because you already cite major differences in your question... –  gentledevil Mar 28 '11 at 20:54
    
This is a guess, but you are really asking: How can I have a cross between Connect to Server/SSH and commandline sshfs where I retain the GUIness of the former and customizability of where and what to mount of the latter. If I'm right, pls amend your question and maybe we can help... –  DrSAR Apr 7 '11 at 21:05

1 Answer 1

Well gnome network connections are gvfs only, not fuse at all. They have no mount points. In order to save and load files from them you need to use a program that supports the GIO calls, which sucks for programmers and means they don't work for KDE apps.

The fuse filesystem on the other hand has an actual mount point, so it's easy to see where the files are and it obays normal UNIX logic for saving and loading files. Any application can save and load from the filenames.

share|improve this answer
    
That's not true at all. Yes it shouldn't have to be via GIO, but it is still accessible on the filesystem natively. Usually all the GVFS mounts are exposed at ~/.gvfs~. –  Matt Joiner Jul 8 '12 at 11:22
    
Yes, but the general rule of thumb is that if it's been hidden, it's not intended to be used normally. If the developers intended .gvfs to be used, they should have done a better job of standardising the location on FreeDesktop.org –  Martin Owens -doctormo- Jul 11 '12 at 11:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.