After getting authentication to work, I couldn't do anything useful
with lshd and lsh. The connection simply died.
I don't understand why this happens.
Below you'll find some output from lshd and lsh.
(lsh-snapshot-1999-01-14 on S.u.S.E. Linux 5.3 (i386) - Kernel 2.0.35)
-- Heinz
lshd -v --debug -h NEW_KEY
...
do_spawn_shell: Child process
Child: Setting up environment.
Child: Environment:
Child: 'LOGNAME=hk'
Child: 'USER=hk'
Child: 'SHELL=/bin/bash'
Child: 'HOME=/home/hk'
Child: 'PATH=/bin:/usr/bin'
Child: Duping stderr (bye).
Child 205 died with exit code 0.
DEBUG: received packet(size 5 = 0x5)
00000000: 60 00 00 00 00
handle_connection: Received packet of type 96
Marking fd 8 for closing.
channel_close_callback: Closing after EOF.
Closing fd 8.
DEBUG: received packet(size 5 = 0x5)
00000000: 61 00 00 00 00
handle_connection: Received packet of type 97
Read EOF on fd 5.
Marking fd 5 for closing.
Connection died, for reason 1.
Closing fd 5.
lsh -v --debug localhost
...
handle_connection: Received packet of type 91
DEBUG: received packet(size 5 = 0x5)
00000000: 63 00 00 00 00
handle_connection: Received packet of type 99
DEBUG: received packet(size 9 = 0x9)
00000000: 5d 00 00 00 00 00 04 00 00
handle_connection: Received packet of type 93
DEBUG: received packet(size 25 = 0x19)
00000000: 62 00 00 00 00 00 00 00 0b 65 78 69 74 2d 73 74
00000010: 61 74 75 73 00 00 00 00 00
handle_connection: Received packet of type 98
DEBUG: received packet(size 5 = 0x5)
00000000: 60 00 00 00 00
handle_connection: Received packet of type 96
Marking fd 0 for closing.
Closing fd 0.
DEBUG: received packet(size 5 = 0x5)
00000000: 61 00 00 00 00
handle_connection: Received packet of type 97
Marking fd 5 for closing.
Connection died, for reason 1.
Closing fd 5.