Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Fuse and sshfs?

    Reply
    Page 3 of 4 | Prev |   1     2   3   4   | Next
    nymajoak | # 21 | 2010-01-31, 16:16 | Report

    I've mucked about with sshfs a bit and got it to work. But..

    My remote directory has a number of subdirectories and in some cases sub-subdirectories. Accessing this directory structure works fine using the terminal, MicroB, emelfm2, mc and when ssh:ing into the device.

    The problem is with the native file browser. It refuses to show any content in subdirectories. They all appear empty. The same thing happens in Petrovich. It doesn't matter if I mount as user or as root (with -o allow_other).

    Actually the topmost (alphanumerically speaking) subdirectory is not empty but instead contains seemingly random files/directories from one of the other subdirectories..

    I've googled the issue but not come up with anything useful. Is the file browser working correctly for you guys or is it it bug filing time?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by nymajoak; 2010-02-01 at 20:57.

     
    hallgreng | # 22 | 2010-02-04, 06:56 | Report

    umounting as a non-root user...

    let a user invoke umount with sudo:
    Code:
    #echo 'user ALL = NOPASSWD: /bin/umount' >> /etc/sudoers
    then you can umount with
    Code:
    $sudo umount /mounted/directory/
    i dont like messing around with sudo (i dont use it on my desktop for anything), but it works ^_^
    also, mind that this seems to have been undone after the PR1.1 update, so you may have to redo this from time to time.

    doesnt hurt to also do it for 'ping'. i use ping and umount in an sshfs mounting script that determines if im on my local lan or if i need to mount over the internet.
    Code:
    #echo 'user ALL = NOPASSWD: /bin/ping' >> /etc/sudoers

    EDIT:
    my file browser browses through my ssh mount just fine (albeit a little slowly). i dont know what could be causing your issues digging into the sub directories nymajoak...

    my mount command is:
    Code:
    sshfs -o reconnect,allow_other,uid=1000 -p 22 hallgreng@hallgren-fs.hallgren.net:/ /home/user/MyDocs/hallgren-fs
    mount reports as follows:
    Code:
    hallgreng@hallgren-fs.hallgren.net:/ on /home/user/MyDocs/hallgren-fs type fuse.sshfs (rw,nosuid,nodev,max_read=65536,allow_other,user=user

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by hallgreng; 2010-02-04 at 07:01.
    The Following User Says Thank You to hallgreng For This Useful Post:
    nymajoak

     
    nymajoak | # 23 | 2010-02-04, 11:34 | Report

    Originally Posted by hallgreng View Post
    my file browser browses through my ssh mount just fine (albeit a little slowly). i dont know what could be causing your issues digging into the sub directories nymajoak...

    my mount command is:
    Code:
    sshfs -o reconnect,allow_other,uid=1000 -p 22 hallgreng@hallgren-fs.hallgren.net:/ /home/user/MyDocs/hallgren-fs
    mount reports as follows:
    Code:
    hallgreng@hallgren-fs.hallgren.net:/ on /home/user/MyDocs/hallgren-fs type fuse.sshfs (rw,nosuid,nodev,max_read=65536,allow_other,user=user
    Thanks for that, good to know it "should" work.

    I didn't use the reconnect, allow_other and uid options so I tried adding them one after the other. My mtab reports the same as your mount now. Unfortunatelly the subdirectory behavior didn't change.

    Maybe I should try reinstalling the file manager. Hmm.. Wonder how I do that..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    hallgreng | # 24 | 2010-02-04, 16:54 | Report

    i was going to call myself a liar and say that it DID work but no longer does, however it still does work -but at a completely unusable speed.
    45sec to get the contents of /home/ which has ONE directory in it!
    it used to be pretty zippy, but no longer. i blame the PR1.1 update.
    at least it works well on the command line.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    lfcobra | # 25 | 2010-03-21, 02:13 | Report

    Was wondering if anyone here might be able to help me.

    I have sshfs all setup on my n900, and I've made a shell script that will either mount (if not already mounted) or unmount (if it is mounted) the ssh file system. When i run the script from the terminal it works perfectly fine. The file system is mounted and i'm able to access all my content and and when i run the script again it unmounts and I no longer have access. Works exactly like I expect it to.

    My problem is that I have followed this how to
    http://www.themaemo.com/howto-launch...om-a-shortcut/
    to make a shortcut that will run my script. When I click the icon it launches the terminal and i have to type the password for the remote computer as expected. But for some reason the file system is not mounted.

    I've tried playing around with the Exec line thinking that was the issue. I've tried the following (my script is located in /usr/bin)
    Exec=/usr/bin/osso-xterm ssh_script.sh
    Exec=/usr/bin/sh ssh_script.sh
    Exec=/usr/bin/ssh_script.sh
    Exec=rootsh /usr/bin/osso-xterm ssh_script.sh
    None of which resolved the matter of the file system not being mounted. Any ideas?

    One more question: After a file system has been successfully mounted I am unable to follow symbolic links. I was curious if this is the correct behavior of sshfs or not.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by lfcobra; 2010-03-21 at 02:32. Reason: another question

     
    SubCore | # 26 | 2010-03-23, 10:03 | Report

    Originally Posted by lfcobra View Post
    Exec=rootsh /usr/bin/osso-xterm ssh_script.sh
    None of which resolved the matter of the file system not being mounted. Any ideas?
    try
    Code:
    Exec=/bin/busybox sh -c /usr/bin/ssh_script.sh
    or, if you need root privileges, maybe this:
    Code:
    Exec=/bin/busybox sh -c 'echo /usr/bin/ssh_script.sh | sudo gainroot'
    as for symlinks - i haven't noticed anything, but i'm not sure if the shares i mount actually contain any.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    horli | # 27 | 2010-05-31, 18:57 | Report

    For the symlink problem add follow_symlinks option to sshfs

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to horli For This Useful Post:
    qole

     
    LippiVan | # 28 | 2010-08-03, 13:21 | Report

    Originally Posted by qole View Post
    As White Bear points out on his website, you have to do it from the (root) command line:

    Code:
    apt-get install sshfs
    I've tried installing sshfs this way, but I'm always getting an error:

    " Temporary failure resolving 'repository.maemo.org' "

    Does this have anything to do with PR.1.2?
    I'd really like to be able to mount my shares this way, so any help is very appreciated!
    thx!

    Edit: I've installed all packages manually, seems to be working great!
    I'm just amazed of the capabilities of the N900 over and over again, it's never getting boring

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by LippiVan; 2010-08-03 at 14:18.

     
    toxaris | # 29 | 2011-02-03, 13:28 | Report

    A question.
    Can I use sshfs thru a firewall?
    I can SSH to the shell on my NAS thru my firewall.
    But then I do:
    sshfs root@<my public IP>: /path/to/my/files /media/nfs
    I get thi error: "Read: Connection reset by peer"

    Doing something wrong?
    I can mount when Im on the same network.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    www.rzr.online.fr | # 30 | 2012-04-18, 21:24 | Report

    note that sshfs is also working on harmattan :



    http://rzr.online.fr/q/fuse# InstalL #SshFs on your MeeGo #HarmattaN HandSet to #MounT RemotE #FileSystem, enlarge your RootFs !n950club !n9

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 3 of 4 | Prev |   1     2   3   4   | Next
vBulletin® Version 3.8.8
Normal Logout