[Need help] sshd cannot work on mips-sony-bsd

NAKAJI Hiroyuki nakaji at tutrp.tut.ac.jp
Thu Aug 31 12:26:07 EST 2000


Ben and folks,

The problem seems the error message,
error: open /dev/tty failed - could not set controlling tty: No such device or address

But I wander why 'open /dev/tty failed'.

Anyway, I tried the snapshot (with my patch to compile it).

>>>>> In <Pine.LNX.3.95.1000830074846.903B-100000 at newton.pconline.com> 
>>>>>	Ben Lindstrom <mouring at pconline.com> wrote:

Ben> May I suggest trying the current snapshot?
Ben> http://www.mindrot.org/misc/openssh/openssh-SNAP-20000830.tar.gz

It fails with same error...

When slogined from remote host (133.15.188.118), 'sshd -d -p 24' says:

debug: Server will not fork when running in debugging mode.
Connection from 133.15.188.118 port 974
debug: Client protocol version 1.5; client software version OpenSSH-2.1
debug: Local version string SSH-1.99-OpenSSH_2.1.1p5
debug: Seeded RNG with 14 bytes from programs
debug: Seeded RNG with 3 bytes from system calls
debug: Seeded RNG with 14 bytes from programs
debug: Seeded RNG with 3 bytes from system calls
debug: Sent 768 bit public key and 1024 bit host key.
debug: Encryption type: 3des
debug: Received session key; encryption turned on.
debug: Installing crc compensation attack detector.
debug: Attempting authentication for nakaji.
Accepted rsa for nakaji from 133.15.188.118 port 974
debug: session_new: init
debug: session_new: session 0
debug: Allocating pty.
debug: Entering interactive session.
error: open /dev/tty failed - could not set controlling tty: No such device or address
debug: no set_nonblock for tty fd 7
debug: no set_nonblock for tty fd 11
debug: server_init_dispatch_13
debug: server_init_dispatch_15
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: tvp!=NULL kid 0 mili 10
debug: Received SIGCHLD.

On tty of 133.15.188.188,

$ rlogin -p 24 nakaji-nws    # rlogin is an alias of slogin
The authenticity of host 'nakaji-nws' can't be established.
RSA key fingerprint is 3e:1a:63:60:4b:c8:88:d1:8e:e2:f1:a3:10:37:6d:07.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'nakaji-nws' (RSA) to the list of known hosts.
Last login: Thu Aug 31 10:08:38 2000 from nakaji
NEWS-OS Release 4.2.1R FCS#5 #13: Mon Sep  8 23:50:00 JST 1997
Environment:
  USER=nakaji
  LOGNAME=nakaji
  HOME=/home/nakaji
  PATH=/usr/bin:/bin:/usr/sbin:/sbin
  MAIL=/var/spool/mail/nakaji
  SHELL=/usr/local/bin/bash
  SSH_CLIENT=133.15.188.118 974 24
  SSH_TTY=/dev/ttyp2
  TERM=kterm

I cannot see shell's prompt. At this state, ps on nakaji-nws shows,

$ tty
/dev/ttyp3
$ ps xc
USER       PID %CPU %MEM    SZ   RSS TT STAT TIME COMMAND
nakaji   17407  5.4  1.7   924   468 p3 S    0:00 bash
nakaji   17405  0.0  1.3   796   340 ?  T    0:00 bash
nakaji   17423  0.0  0.7   316   192 p3 R    0:00 ps

On ttyp3 of nakaji-nws, I killed one bash with 'kill -KILL 17405' and
'sshd -d' exits with following message:

debug: Received SIGCHLD.
debug: tvp!=NULL kid 1 mili 100
debug: End of interactive session; stdin 0, stdout (read 353, sent 353), stderr 0 bytes.
Disconnecting: Command terminated on signal 9.
debug: Calling cleanup 0x409c98(0x10025eb0)
debug: pty_cleanup_proc: /dev/ttyp2
debug: Calling cleanup 0x40d5dc(0x0)
debug: Calling cleanup 0x411de0(0x0)
debug: writing PRNG seed to file //.ssh/prng_seed

Ssh-1.2.27 is working well. But I want to use OpenSSH if possible.
Thanks.
-- 
NAKAJI Hiroyuki





More information about the openssh-unix-dev mailing list