Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 20:19:24 +0100
From:      Max Laier <max@love2party.net>
To:        freebsd-pf@freebsd.org
Cc:        freebsd-stable@freebsd.org
Subject:   Re: SSH hanging
Message-ID:  <200503272119.32390.max@love2party.net>
In-Reply-To: <Pine.LNX.4.44.0503251915050.9905-100000@staffshell.primus.ca>
References:  <Pine.LNX.4.44.0503251915050.9905-100000@staffshell.primus.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1211256.PxSY9e7dnT
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Sorry for replying late ...

On Saturday 26 March 2005 01:25, Didier Rwitura wrote:
> /etc/shell  ---> /usr/sbin/authpf
<...>
> I am getting
>
> Hello didier, You are authenticated from host "10.0.0.33"
>
> when I connect with ssh but it hangs ... I don't get the prompt

This is intentional.  authpf is not an interactive shell, it is simply for=
=20
authentication purposes.  The codeportion in question:
|         while (1) {
|                 printf("\r\nHello %s, ", luser);
|                 printf("You are authenticated from host \"%s\"\r\n", ipsr=
c);
|                 setproctitle("%s@%s", luser, ipsrc);
|                 print_message(PATH_MESSAGE);
|                 while (1) {
|                         sleep(10);
|                         if (want_death)
|                                 do_death(1);
|                 }
|         }


=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--nextPart1211256.PxSY9e7dnT
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQBCRwdEXyyEoT62BG0RAqOwAJ973WEHboL60ZGQpRW+EZKBIt7rXwCfXNNe
5na9jr7AEa064Lmyd7pGSso=
=BEHM
-----END PGP SIGNATURE-----

--nextPart1211256.PxSY9e7dnT--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503272119.32390.max>