logo       

Re: [sshfs] Error "Connection Reset By Peer" on pam_mount+sshfs (Fedora Cor: msg#00024

file-systems.fuse.sshfs

Subject: Re: [sshfs] Error "Connection Reset By Peer" on pam_mount+sshfs (Fedora Core 6)

> I arrive to fuse-sshfs mailing list after *weeks* of googling for a
> solution without success.
>
> I am trying to use pam_mount on a Fedora Core 6 client to mount homes
> for users.
>
> My setup seems to be ok in terms of pam.d configuration and permissions,
> because if I use pam_mount+CIFS everything works fine.
>
> If I mount the shares with:
>
> volume * cifs sambaserver homes ~ dmask=0711 - -
>
> Everything runs perfectly, so pam is working and everything else is.
>
> BUT when I try to use sshfs, changing the above line with this:
>
> volume * fuse loira "sshfs#&@loira:" ~ - - -
>
> Then this error is printed:
>
> login: pam_mount(mount.c:100) read: Connection reset by peer
>
> But, if after logging in without home directory (due to this error), the
> user reproduces the exact command that pam_mount is executing
> (mount.fuse) ¡¡then the directory is mounted without any problems!!
>
> I can see no answer in google with this problem: and both my client
> (ks-loira) and my server (loira) are fresh installs. I guess this is a
> problem of sshfs because, as I stated before, there is no
> problem mounting CIFS shares (and this module gets the password correctly).
>
> By the way I need SSHFS and not CIFS because I need unix permissions to
> be set correctly, and I don't get it to work with CIFS.
>
> I asked just hours ago on the pam_mount mailing list but the mantainer
> told me that the message "reset by peer" comes from the mount child, and
> not from pam_mount, which points to a problem with sshfs. Seems like
> this issue happens on OpenSUSE 10.2

Actually the "Connection reset by peer" error comes from ssh. Try
replacing the mount command with just a simple ssh invocation:

ssh user@server echo hello

I've tried the pam_mount module on Debian and it mounts an sshfs
volume fine.

Miklos



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fuse-sshfs mailing list
Fuse-sshfs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/fuse-sshfs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise