sshfs mounting from Nautilus fails

Patrick fedora-list at puzzled.xs4all.nl
Fri Aug 24 15:03:33 UTC 2007


On Fri, 2007-08-24 at 16:30 +0200, Patrick wrote:
> Hi all,
> 
> I'm using a laptop running up-to-date Fedora 7 i386. I installed fuse
> and fuse-sshfs and added the following line to /etc/fstab:
> sshfs#patrick at box2: /mnt/box2 fuse noauto,user 0 0
> 
> When I login to the Gnome desktop and start nautilus I see a little icon
> called box2 at the left under "Places". If I double click on the box2
> icon I get a dialog asking for my password. I enter the correct password
> and... nothing.
> 
> However, if I open a terminal and manually mount it (as user patrick)
> with mount /mnt/box2 and enter my password it... works. I even see the
> box2 icon change automagically in nautilus and a little harddisk icon
> "box2" appears on my Desktop.
> 
> I don't understand why it wont work from nautilus. To test I installed
> an ssh key (without passphrase) on box2 and added ssh-agent and ssh-add
> to the session startup, logged out and logged in again but it did not
> make a difference.
> 
> Anyone know what I am doing wrong?

Sorry to reply to myself. Got some more information that might be
useful. The difference between mounting successfully from a terminal and
failing from nautilus is the following:

Output in /var/log/secure on remote box from a successful mount from a
terminal on the local box:

Aug 24 18:56:20 box2 sshd[2727]: Postponed publickey for patrick from
10.0.0.111 port 60652 ssh2
Aug 24 18:56:20 box2 sshd[2724]: Accepted publickey for patrick from
10.0.0.111 port 60652 ssh2
Aug 24 18:56:20 box2 sshd[2724]: pam_unix(sshd:session): session opened
for user patrick by (uid=0)
Aug 24 18:56:20 box2 sshd[2728]: subsystem request for sftp

Output in /var/log/secure on remote box from a failing mount via
nautilus on the local box:

Aug 24 18:56:20 box2 sshd[2727]: Postponed publickey for patrick from
10.0.0.111 port 60652 ssh2
Aug 24 18:56:20 box2 sshd[2724]: Accepted publickey for patrick from
10.0.0.111 port 60652 ssh2
Aug 24 18:56:20 box2 sshd[2724]: pam_unix(sshd:session): session opened
for user patrick by (uid=0)
Aug 24 18:56:20 box2 sshd[2728]: subsystem request for sftp
Aug 24 18:56:20 box2 sshd[2724]: pam_unix(sshd:session): session closed
for user patrick

Only difference is the last line here. Seems the session gets closed.
Anyone know why?

Regards,
Patrick




More information about the fedora-list mailing list