(I tried to send this yesterday, but I think it was rejected because
I included a patch and/or because I Cc'ed the bug reporting list.  Trying
again, because someone on this list might have advice.  I've cut out some
of the original message.)

I'm trying to get OpenSSH 2.5.2p2 to run on HP-UX 9.05.  I've had some
decent results, but I'm also seeing some problems.

I'm using the EGD (I configured with --with-prngd-socket=/tmp/entropy).
I've got perl 5.6 installed, and gcc 2.7.2.  Compiling it required some
changes (not attaching them this time).

* "ssh localhost command" works just fine, as does "ssh remotehost command".

* "ssh remotehost" works just fine (the remote host is running ssh.com's
  sshd2 on Linux).

* "ssh localhost" (no command) works fine *until* I try to logout.  When
  I press Ctrl-D, the ssh client "hangs".  I've read the FAQ, and no,
  I'm *not* running background jobs.  "shopt -s huponexit" had no effect.
  In order to get control back in the terminal that ran "ssh localhost",
  I have to kill the ssh process from another window.

* If I connect to the HP-UX sshd using Putty on a Win32 box, the terminal
  doesn't act correctly.  Symptoms:

  + \n -> CRLF translation is not being performed; the MOTD "stair steps".
    I can work around this by running "stty sane".

  + Commands that I type are not echoed on the screen (and their output
    "stair steps", as above).  I can work around this one by running
    "stty echo".

  + When I logout, Putty does not terminate -- I get the same "hang"
    problem that I have when I use "ssh localhost".  Workaround for this
    is to close the Putty window (click the [X]).

  (For what it's worth, if I connect to the same HP-UX system using Putty's
  *telnet* client, from the very same Win32 box, I don't have any of these
  problems.)

* If I connect to the HP-UX sshd from the Linux system (using the ssh.com
  ssh client), I get very similar symptoms -- "stair steps", no echo, hang
  on logout.  "stty sane" works around it.

I attempted some basic diagnostics myself.  When I run sshd with the "-d"
option and connect to it, it looks like this:

  debug1: Allocating pty.
  debug1: Setting controlling tty using TIOCSCTTY.debug1: Entering interactive session.

  debug1: fd 3 setting O_NONBLOCK
  debug1: fd 8 IS O_NONBLOCK
  debug1: server_init_dispatch_13
  debug1: server_init_dispatch_15
  ioctl(TIOCSCTTY): Invalid argument

When I logout of the session:

  debug1: Received SIGCHLD.

When I kill the ssh client:

  Connection closed by remote host.
  debug1: Calling cleanup 0x40009202(0x40015688)
  debug1: pty_cleanup_proc: /dev/ttypb
  debug1: Calling cleanup 0x400092fa(0x0)

If I start the sshd with "-d -d -d", I also get an infinite stream of:

  debug3: tvp!=NULL kid 1 mili 100
  debug3: tvp!=NULL kid 1 mili 100

after logging out of the session, until I kill the ssh client.

Reply via email to