PAM_AUTH_ERR messages

Sean seanlkml at sympatico.ca
Sun May 1 19:45:26 EST 2005


On Sun, May 1, 2005 3:52 am, Darren Tucker said:

> The code in session.c that returns the error message also sets an exit
> code of 254.  If PuTTY checks the exit code then it'll detect this,
> however if it's just looking for connection breaks and the like then it
> probably won't.  I don't know which it does.

Yes, the putty log confirms what you say:

Incoming packet type 96 / 0x60 (SSH2_MSG_CHANNEL_EOF)
  00000000  00 00 01 00
Incoming packet type 98 / 0x62 (SSH2_MSG_CHANNEL_REQUEST)
  00000000  00 00 01 00 00 00 00 0b 65 78 69 74 2d 73 74 61
  00000010  74 75 73 00 00 00 00 fe
Event Log: Server sent command exit status 254

However then openssh sends:

Incoming packet type 97 / 0x61 (SSH2_MSG_CHANNEL_CLOSE)
  00000000  00 00 01 00

And Putty concludes, all is well shutting down normally.   It looks like
it would be a one line change in Putty to get it to respond correctly.

Sean





More information about the openssh-unix-dev mailing list