Reply
Thread Tools
Posts: 199 | Thanked: 144 times | Joined on Sep 2009 @ gbg.se
#21
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?

Last edited by nymajoak; 2010-02-01 at 20:57.
 
Posts: 63 | Thanked: 21 times | Joined on Jan 2006
#22
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

Last edited by hallgreng; 2010-02-04 at 07:01.
 

The Following User Says Thank You to hallgreng For This Useful Post:
Posts: 199 | Thanked: 144 times | Joined on Sep 2009 @ gbg.se
#23
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..
 
Posts: 63 | Thanked: 21 times | Joined on Jan 2006
#24
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.
 
Posts: 189 | Thanked: 47 times | Joined on Nov 2009
#25
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.

Last edited by lfcobra; 2010-03-21 at 02:32. Reason: another question
 
SubCore's Avatar
Posts: 850 | Thanked: 626 times | Joined on Sep 2009 @ Vienna, Austria
#26
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.
__________________
"What we perceive is not nature itself, but nature exposed to our method of questioning."
-- Werner Karl Heisenberg
 
Posts: 12 | Thanked: 1 time | Joined on Jan 2010
#27
For the symlink problem add follow_symlinks option to sshfs
 

The Following User Says Thank You to horli For This Useful Post:
Posts: 74 | Thanked: 19 times | Joined on Dec 2009
#28
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

Last edited by LippiVan; 2010-08-03 at 14:18.
 
Posts: 424 | Thanked: 196 times | Joined on Mar 2010 @ Sweden
#29
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.
 
www.rzr.online.fr's Avatar
Posts: 1,348 | Thanked: 1,863 times | Joined on Jan 2009 @ fr/35/rennes
#30
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
__________________
Current obsession:

https://purl.org/rzr/abandonware

Please help to list all maemo existing apps :

https://github.com/abandonware/aband...ment-578143760

https://wiki.maemo.org/Apps#

I am looking for " 4 inch TFT LCD display screen " for Nokia n950 HandSet

http://rzr.online.fr/q/lcd


Also, I need online storage to archive files :

http://db.tt/gn5Qffd6#

https://my.pcloud.com/#page=register...e=g8ikZmcfEJy#
 
Reply

Tags
fuse, ssh, sshfs


 
Forum Jump


All times are GMT. The time now is 22:52.