Page 1 of 6 123 ... LastLast
Results 1 to 10 of 60

Thread: HOWTO: Mount SSH Shares

  1. #1
    Join Date
    May 2005
    Beans
    366
    sshfs has the advantage over a KIOslave or GnomeVFS that any program can use it. For instance, in Kubuntu Amarok wasn't able to play my remote music through fish:/ but worked fine using sshfs.

    1) Install the software
    sudo apt-get install sshfs

    2) Add fuse to /etc/modules
    sudo nano /etc/modules

    3) Add yourself to the 'fuse' group, then log out and log in again.
    sudo adduser your-username fuse

    4) Create a mountpoint and give yourself ownership
    sudo mkdir /media/mount-name
    sudo chown your-username /media/mount-name

    5) Mount the filesystem
    sshfs remote-system-name:/remote-folder /media/mount-name

    6) Unmount the filesystem
    fusermount -u /media/mount-name

    Directions taken from http://ubuntu.wordpress.com/2005/10/...m-using-sshfs/ More info on sshfs is available at http://fuse.sourceforge.net/sshfs.html

    I've run into a strange problem on two Kubuntu machines where, after using sshfs, you're unable to unlock your own computer. Logging in works fine, but you can't return from a password-protected screensaver. My solution was to start a new session, change my password, then return to the old session and use the new password to unlock it.
    Last edited by sciurus; January 5th, 2006 at 03:56 AM.

  2. #2
    Join Date
    Jan 2005
    Location
    Western Pennsylvania
    Beans
    90
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HOWTO: Mount SSH Shares

    Code:
    [cdean@frog ~]$ sshfs 192.168.1.3: linuxbox
    cdean@192.168.1.3's password:
    fuse: failed to exec fusermount: Permission denied
    I'm getting that error after following the HOWTO...
    Colin Dean
    ubuntu on rahab (amd64!), convoy, dartagnan, xubuntu on frog. oubuntu on m8i (openbox+xcompmgr). lfs on vojistilo. dd-wrt on foney, susie, link, tank. trustix on linuxbox.

  3. #3
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Mount SSH Shares

    isn't NFS far more better? i use NFS to connect any linux laptop to my external HDD and windows clients use samba, everything is extremely fast and just amasing
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  4. #4
    Join Date
    May 2005
    Location
    Princeton, NJ
    Beans
    109

    Re: HOWTO: Mount SSH Shares

    Quote Originally Posted by Gandalf
    isn't NFS far more better? i use NFS to connect any linux laptop to my external HDD and windows clients use samba, everything is extremely fast and just amasing
    I think that the security of the encrypted connection that SSH provides is the major advantage here. Also, on a local network, NFS and Samba are just fine (they'd be presumably blocked behind a firewall?), but if you want to have access to those shared directories from an "outside" network, you can just re-use the SSH port.

  5. #5
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Mount SSH Shares

    Quote Originally Posted by Drain
    I think that the security of the encrypted connection that SSH provides is the major advantage here. Also, on a local network, NFS and Samba are just fine (they'd be presumably blocked behind a firewall?), but if you want to have access to those shared directories from an "outside" network, you can just re-use the SSH port.
    yes actually i have a firewall and i don't allow access to prtmap/nfs ports, anyway my ssh port is not the default how to make it use another port then 22?
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  6. #6
    Join Date
    Mar 2005
    Beans
    68

    Re: HOWTO: Mount SSH Shares

    I did this and it worked fine. However, how can I verify the mount (other than using it)? In other words, the "df" command does not show the sshfs mounted drive. How to view the mount ?

  7. #7
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: HOWTO: Mount SSH Shares

    Quote Originally Posted by Gandalf
    yes actually i have a firewall and i don't allow access to prtmap/nfs ports, anyway my ssh port is not the default how to make it use another port then 22?
    With sshfs -p option.

    - GC
    "Nice jail. Looks strong."
    - H. Houdini

  8. #8
    Join Date
    Oct 2005
    Location
    Swift Current, Newfoundland, Canada
    Beans
    195
    Distro
    Kubuntu 6.06

    Re: HOWTO: Mount SSH Shares

    Quote Originally Posted by cdean
    Code:
    [cdean@frog ~]$ sshfs 192.168.1.3: linuxbox
    cdean@192.168.1.3's password:
    fuse: failed to exec fusermount: Permission denied
    I'm getting that error after following the HOWTO...
    Well perhaps reading the instructions might help..
    Code:
    5) Mount the filesystem
    sshfs remote-system-name:/remote-folder /media/mount-name
    ie: home folder on remote system, and /media/dot3home .. just persay..
    sshfs 192.168.1.3:/home/cdean /media/dot3home

  9. #9
    Join Date
    Jun 2005
    Location
    Albuquerque, New Mexico
    Beans
    272
    Distro
    Ubuntu Development Release

    Re: HOWTO: Mount SSH Shares

    Quote Originally Posted by cdean
    Code:
    [cdean@frog ~]$ sshfs 192.168.1.3: linuxbox
    cdean@192.168.1.3's password:
    fuse: failed to exec fusermount: Permission denied
    I'm getting that error after following the HOWTO...

    I believed that fusemount is installed so root only and execute it try the following.

    Code:
    sudo chmod +x /usr/bin/fusermount
    - GC
    "Nice jail. Looks strong."
    - H. Houdini

  10. #10
    Join Date
    Jul 2005
    Location
    Canada
    Beans
    363

    Re: HOWTO: Mount SSH Shares

    thanx for the guide..
    AMD AXDL2600 2.4ghz
    ASUS A7N8X-E Deluxe
    512MB pc3200 RAM

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •