Connection closes after logging in

Topics: Developer Forum
May 8, 2008 at 7:04 PM
Hi,

I am getting very close to being able to get an interactive shell but it seems to fail at the last hurdle. I have copied cmd.exe and also console.dll over to the device and also have the ssh files on there. I can successfully log in but then the connection closes. I am thinking this probably has something to do with the cmd.exe.

I would really appreciate it if someone could give me some pointers as to what to try next. Here is the end of the putty log:

{"
Event Log: Access granted
Outgoing packet type 90 / 0x5a (SSH2MSGCHANNEL_OPEN)
00000000 00 00 00 07 73 65 73 73 69 6f 6e 00 00 01 00 00 ....session.....
00000010 00 40 00 00 00 40 00 .@...@.
Outgoing raw data
00000000 cf 99 12 b5 eb ff 45 f1 42 c2 3e ca fa 54 d1 66 ......E.B.>..T.f
00000010 89 a7 06 7f 1e f2 cb 27 ab e2 e1 2c 6a 94 77 a0 .......'...,j.w.
00000020 06 86 77 b3 26 c5 98 39 29 ef 8e 9e 56 cd c3 d8 ..w.&..9)...V...
00000030 a0 4f 5d 21 53 09 0e 45 4a 66 0e fa 71 d2 e1 50 .O]!S..EJf..q..P
00000040 da 48 f4 05 .H..
Incoming raw data
00000000 aa d5 b0 5c c4 f6 5a 47 ad 18 bd cd a0 29 01 43 ...\..ZG.....).C
00000010 e9 2a 5b 0d 1b a4 0b 1f d6 96 8e 50 fd e3 01 2e .*[........P....
00000020 31 ab f6 b1 04 16 88 38 34 a3 39 6c 24 c7 df 15 1......84.9l$...
00000030 07 90 46 a4 ..F.
Incoming packet type 91 / 0x5b (SSH2MSGCHANNELOPENCONFIRMATION)
00000000 00 00 01 00 00 00 00 00 00 00 00 00 00 00 80 00 ................
Event Log: Opened channel for session
Outgoing packet type 98 / 0x62 (SSH2MSGCHANNEL_REQUEST)
00000000 00 00 00 00 00 00 00 07 70 74 79 2d 72 65 71 01 ........pty-req.
00000010 00 00 00 05 78 74 65 72 6d 00 00 00 50 00 00 00 ....xterm...P...
00000020 18 00 00 00 00 00 00 00 00 00 00 00 10 03 00 00 ................
00000030 00 7f 80 00 00 96 00 81 00 00 96 00 00 .............
Outgoing raw data
00000000 80 3c 08 c5 3f 5e 04 8e 5e f9 d7 6d 4b 0c 50 28 .<..?^..^..mK.P(
00000010 cf e6 ce 5a bd a9 52 e0 41 59 1a 37 11 be ca f0 ...Z..R.AY.7....
00000020 03 50 d3 df c9 a0 a6 31 74 51 08 8d e2 01 6b 35 .P.....1tQ....k5
00000030 b9 2f 10 f5 20 19 a3 82 7c fb b2 18 4e 87 19 0a ./.. ...|...N...
00000040 03 65 24 ee 7d db 20 ef 9e 7c a6 3a e1 5d 1c 10 .e$.}. ..|.:.]..
00000050 ef e7 5f 5e f5 50 f9 49 b9 d6 45 a5 27 c2 68 24 .._^.P.I..E.'.h$
00000060 b6 a5 93 bb ....
Incoming raw data
00000000 e0 e2 5b 12 a2 59 f4 ca f6 34 29 ce 1e a1 42 a8 ..[..Y...4)...B.
00000010 d9 97 2c 9a 78 78 67 c3 c1 72 9a 9d 92 b8 a7 86 ..,.xxg..r......
00000020 2c 70 72 fb ,pr.
Incoming packet type 99 / 0x63 (SSH2MSGCHANNEL_SUCCESS)
00000000 00 00 01 00 ....
Event Log: Allocated pty (ospeed 38400bps, ispeed 38400bps)
Outgoing packet type 98 / 0x62 (SSH2MSGCHANNEL_REQUEST)
00000000 00 00 00 00 00 00 00 05 73 68 65 6c 6c 01 ........shell.
Outgoing raw data
00000000 81 9a 4f cb 7f 8f 94 63 7a 93 6f 5c f6 5c 42 e5 ..O....cz.o\.\B.
00000010 7b 8d c2 a5 ae ea 20 9a fa d8 95 53 96 65 58 3a {..... ....S.eX:
00000020 ef d6 ba fe 2f ed ec 72 7e da 6a 47 68 96 8d c5 ..../..r~.jGh...
00000030 f0 d4 05 fd ....
Incoming raw data
00000000 e0 fd 34 9d e3 c3 47 17 b0 14 ac e5 12 12 e8 ae ..4...G.........
00000010 83 f4 1c 15 8b 61 95 e6 bd 44 55 20 73 f4 44 e4 .....a...DU s.D.
00000020 ca 9f 61 cc 05 0f 30 48 2a fb 21 fb 08 7f a9 05 ..a...0H*.!.....
00000030 36 91 89 91 48 c5 19 0c c2 9c 19 9e 99 4e e5 ae 6...H........N..
00000040 69 b6 c2 f3 5d a6 ba 7e eb f5 ca 7b ac 7b 68 b4 i...]..~...{.{h.
00000050 1d b6 c3 73 3b 16 31 73 e1 e0 97 23 81 54 81 c4 ...s;.1s...#.T..
00000060 a9 b0 7c 77 8b 41 a8 53 69 6f 66 59 9b 53 4a 19 ..|w.A.SiofY.SJ.
00000070 3f 22 64 de 0e 3f 9f 6f 09 b1 96 08 73 16 e5 a1 ?"d..?.o....s...
00000080 f5 ab 7e 55 0b 57 d7 90 51 95 08 5f 52 7d 60 90 ..~U.W..Q.._R}`.
00000090 a3 50 0d 9f f6 d2 7d 77 0b 86 5e b0 5a 72 fd 54 .P....}w..^.Zr.T
000000a0 d0 ee 2d 1b f0 b4 13 5b 01 90 ed 29 37 61 d8 81 ..-....[...)7a..
000000b0 7f ce d8 63 91 35 cd dd 5b 34 0e 12 14 14 0e 44 ...c.5..[4.....D
000000c0 8a 5e 5f 8d 0d ca a6 2e 41 e8 b7 21 84 d7 7c 49 .^_.....A..!..|I
000000d0 49 04 a3 1b ed 06 6e 99 75 af ea c0 bf c5 d0 42 I.....n.u......B
Incoming packet type 93 / 0x5d (SSH2MSGCHANNELWINDOWADJUST)
00000000 00 00 01 00 00 02 00 00 ........
Incoming packet type 99 / 0x63 (SSH2MSGCHANNEL_SUCCESS)
00000000 00 00 01 00 ....
Event Log: Started a shell/command
Incoming packet type 94 / 0x5e (SSH2MSGCHANNEL_DATA)
00000000 00 00 01 00 00 00 00 37 57 65 6c 63 6f 6d 65 20 .......7Welcome
00000010 74 6f 20 53 53 48 20 73 65 72 76 65 72 20 66 6f to SSH server fo
00000020 72 20 43 45 20 21 0d 0a 42 61 73 65 64 20 6f 6e r CE !..Based on
00000030 20 4f 70 65 6e 53 53 48 20 34 2e 33 0d 0a 00 OpenSSH 4.3...
Incoming packet type 96 / 0x60 (SSH2MSGCHANNEL_EOF)
00000000 00 00 01 00 ....
Incoming raw data
00000000 85 41 c4 68 ad 7e bc 5e 2f 23 cf a1 3f 5f 94 9f .A.h.~.^/#..?_..
00000010 32 60 da aa 12 f6 6c ac cb 65 7f 91 79 f6 dd a6 2`....l..e..y...
00000020 8a 99 23 5c df 4f ed b7 39 20 b4 96 9e 17 c1 2a ..#\.O..9 .....*
00000030 2b a4 14 5e b1 06 8e 33 e1 29 80 a7 55 80 2a a3 +..^...3.)..U.*.
00000040 25 8a 95 80 8c 01 6f f8 5c 93 28 5a ab 13 01 81 %.....o.\.(Z....
00000050 b2 d9 d5 8b f4 95 2f 45 71 20 f3 ab b7 09 5a fa ....../Eq ....Z.
00000060 dc b5 a5 6a ed 49 77 9a ...j.Iw.
Incoming packet type 98 / 0x62 (SSH2MSGCHANNEL_REQUEST)
00000000 00 00 01 00 00 00 00 0b 65 78 69 74 2d 73 74 61 ........exit-sta
00000010 74 75 73 00 00 00 00 00 tus.....
Event Log: Server sent command exit status 0
Incoming packet type 97 / 0x61 (SSH2MSGCHANNEL_CLOSE)
00000000 00 00 01 00 ....
Outgoing packet type 97 / 0x61 (SSH2MSGCHANNEL_CLOSE)
00000000 00 00 00 00 ....
Outgoing raw data
00000000 b8 e2 64 9e 16 6f 19 18 ed fc 6d 63 6b 0a 36 c6 ..d..o....mck.6.
00000010 c9 72 b0 c0 b1 ea 33 95 56 22 76 f0 bd dc 89 f7 .r....3.V"v.....
00000020 79 44 79 16 yDy.
Event Log: Disconnected: All channels closed"}