osdir.com
mailing list archive F.A.Q. -since 2001!



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

List: file-systems.fuse.sshfs

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

Hi Miklo:

Tanks for replying and for your work in sshfs.

> 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

This works perfectly, and the mount command works perfectly if I issue
it from the command line as the user, but not if it's issued from pam_mount.

I know it works on other distributions. Any insight on what may be
missing. Password handling perhaps?. If I use CIFS on the same setup,
surprisingly, the shares are mounted by pam_mount without changing
anything else.

But we need sshfs.

By the way I use LDAP, but the fact that CIFS is working steers my
attention away from pam.d problems.

Any help or insight is really really welcome.

Thanks in advance

Manuel Moran

-------------------------------------------------------------------------
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


Thread at a glance:

Previous Message by Date:

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

Next Message by Date:

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

> > 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 > > This works perfectly, and the mount command works perfectly if I issue > it from the command line as the user, but not if it's issued from pam_mount. A full strace of the mount would help. Can you replace the mount command with something like: strace -o /tmp/strace -f mount ... 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

Previous Message by Thread:

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

Next Message by Thread:

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

> > 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 > > This works perfectly, and the mount command works perfectly if I issue > it from the command line as the user, but not if it's issued from pam_mount. A full strace of the mount would help. Can you replace the mount command with something like: strace -o /tmp/strace -f mount ... 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
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!