From: Araki K. <j00...@ip...> - 2002-02-04 12:47:45
|
荒木です:-) Subject: [Mlterm-dev-ja] Re: ssh to spark solaris From: Takashi Matsuo <t-m...@tk...> Message-ID: <200...@tk...> Date: Mon, 4 Feb 2002 11:33:11 +0900 > 添付でktermからとmltermからの時のdebug情報を付けてます > sshd -dddしてfileに落としました > 前半部分はカットしました ありがとうございます。 念のため、わたしの環境(NetBSD-1.5ZA)での結果も添付しておきます。 > まず、ssh protocol versionは1.5でも2でも同じ結果です。 > rxvt、xtermでは正常に接続できます > それから、solarisのopensshをopenssh-3.0.2p1にしましたが、 > 状況は変わりませんでした。 > ちなみにmltermがだんまりになっている時、サーバ側では > debug1: channel 0: read<=0 rfd 8 len 0 > debug1: channel 0: read failed > debug1: channel 0: input open -> drain > debug1: channel 0: close_read > debug1: channel 0: ibuf empty > debug1: channel 0: input drain -> closed > debug1: channel 0: send eof > となっています。 ここまでいっちゃってますか。となると、接続切れちゃってますね。 ぱっとみたところ怪しかったのは、 debug2: tty_parse_modes: SSH2 n_bytes 256 debug2: tty_parse_modes: ospeed 0 debug2: tty_parse_modes: ispeed 0 このボーレートが 0 になっているところなんですが、src/ml_pty_fork_streams.c に、添付のパッチを当てると、どうなりますでしょうか? では -- kiken j00...@ip... Index: ml_pty_fork_streams.c =================================================================== RCS file: /home/ken/cvsroot/mlterm/src/ml_pty_fork_streams.c,v retrieving revision 1.11 diff -u -r1.11 ml_pty_fork_streams.c --- ml_pty_fork_streams.c 2001/12/26 11:07:04 1.11 +++ ml_pty_fork_streams.c 2002/02/04 12:29:39 @@ -201,6 +201,9 @@ close(slave) ; } + cfsetispeed( &tio , B9600) ; + cfsetospeed( &tio , B9600) ; + if( tcsetattr(STDIN_FILENO, TCSANOW , &tio) < 0) { #ifdef DEBUG ---- sshd -ddd log debug1: channel 0: new [server-session] debug1: session_new: init debug1: session_new: session 0 debug1: session_open: channel 0 debug1: session_open: session 0: link with channel 0 debug1: server_input_channel_open: confirm session debug2: callback start debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 channel 0 request pty-req reply 0 debug1: Allocating pty. debug1: session_pty_req: session 0 alloc /dev/ttyp8 debug3: tty_parse_modes: SSH2 n_bytes 251 debug3: tty_parse_modes: ospeed 9600 debug3: tty_parse_modes: ispeed 9600 debug3: tty_parse_modes: 1 3 debug3: tty_parse_modes: 2 28 debug3: tty_parse_modes: 3 8 debug3: tty_parse_modes: 4 21 debug3: tty_parse_modes: 5 4 debug3: tty_parse_modes: 6 255 debug3: tty_parse_modes: 7 255 debug3: tty_parse_modes: 8 17 debug3: tty_parse_modes: 9 19 debug3: tty_parse_modes: 10 26 debug3: tty_parse_modes: 11 25 debug3: tty_parse_modes: 12 18 debug3: tty_parse_modes: 13 23 debug3: tty_parse_modes: 14 22 debug3: tty_parse_modes: 17 20 debug3: tty_parse_modes: 18 15 debug3: tty_parse_modes: 30 1 debug3: tty_parse_modes: 31 0 debug3: tty_parse_modes: 32 0 debug3: tty_parse_modes: 33 0 debug3: tty_parse_modes: 34 0 debug3: tty_parse_modes: 35 0 debug3: tty_parse_modes: 36 1 debug3: tty_parse_modes: 38 1 debug3: tty_parse_modes: 39 0 debug3: tty_parse_modes: 40 0 debug3: tty_parse_modes: 41 0 debug3: tty_parse_modes: 50 1 debug3: tty_parse_modes: 51 1 debug3: tty_parse_modes: 53 1 debug3: tty_parse_modes: 54 1 debug3: tty_parse_modes: 55 1 debug3: tty_parse_modes: 56 0 debug3: tty_parse_modes: 57 0 debug3: tty_parse_modes: 58 0 debug3: tty_parse_modes: 59 1 debug3: tty_parse_modes: 60 0 debug3: tty_parse_modes: 61 0 debug3: tty_parse_modes: 62 1 debug3: tty_parse_modes: 70 1 debug3: tty_parse_modes: 72 1 debug3: tty_parse_modes: 73 0 debug3: tty_parse_modes: 74 0 debug3: tty_parse_modes: 75 0 debug3: tty_parse_modes: 90 1 debug3: tty_parse_modes: 91 1 debug3: tty_parse_modes: 92 0 debug3: tty_parse_modes: 93 0 debug2: callback done debug2: callback start debug1: session_by_channel: session 0 channel 0 debug1: session_input_channel_req: session 0 channel 0 request shell reply 0 debug1: channel 0: rfd 13 isatty debug1: Setting controlling tty using TIOCSCTTY. debug1: fd 13 setting O_NONBLOCK debug2: fd 5 is O_NONBLOCK debug2: callback done ===> ここで login 完了 ===> 以後 exit 入力 debug1: channel 0: read<=0 rfd 13 len 0 debug1: channel 0: read failed debug1: channel 0: input open -> drain debug1: channel 0: close_read debug1: channel 0: ibuf empty debug1: channel 0: input drain -> closed debug1: channel 0: send eof debug1: Received SIGCHLD. debug1: session_by_pid: pid 2849 debug1: session_exit_message: session 0 channel 0 pid 2849 debug1: session_exit_message: release channel 0 debug1: channel 0: write failed debug1: channel 0: output open -> closed debug1: channel 0: close_write debug1: session_close: session 0 pid 2849 debug1: session_pty_cleanup: session 0 release /dev/ttyp8 debug1: channel 0: send close debug3: channel 0: will not send data after close debug3: channel 0: will not send data after close debug1: channel 0: rcvd close debug3: channel 0: will not send data after close debug1: channel 0: is dead debug1: channel 0: garbage collecting debug1: channel_free: channel 0: server-session, nchannels 1 debug3: channel_free: status: The following connections are open: #0 server-session (t4 r0 i8/0 o128/0 fd -1/-1) |