Here is some more information:
verbose output from when it doesn't work:
berlin-22: ssh -v kodos
warning: Development-time debugging not compiled in.
warning: To enable, configure with --enable-debug and recompile.
debug: hostname is 'kodos'.
debug: Unable to open /home/cmd/.ssh2/ssh2_config
warning: Development-time debugging not compiled in.
warning: To enable, configure with --enable-debug and recompile.
debug: connecting to kodos...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: Ssh2Client/sshclient.c:1015: creating userauth protocol
debug: Ssh2Client/sshclient.c:349: Host key found from database.
debug: Unable to open /home/cmd/.ssh2/identification
debug: Ssh2AuthClient/sshauthc.c:304: Method 'publickey' disabled.
debug: Ssh2AuthPasswdClient/authc-passwd.c:82: Starting password query...
cmd's password:
debug: Ssh2/ssh2.c:472: Authentication successful.
debug: Requesting X11 forwarding with authentication spoofing.
/usr/bin/hostname: Command not found.
msgs: Command not found.
Fri May 19 12:59:56 EDT 2000
/usr/bin/hostname: Command not found.
kodos-1:
kodos-1:
kodos-1:
kodos-1: xterm
Suspended
kodos-2: bg %1
[1] xterm &
kodos-3:
kodos-3:
kodos-3: logout
debug: Got session close with exit_status=0
debug: destroying client struct...
Connection to kodos closed.
debug: uninitializing event loop
and verbose output from when it does:
oxmyx-61: ssh -v kodos
warning: Development-time debugging not compiled in.
warning: To enable, configure with --enable-debug and recompile.
debug: hostname is 'kodos'.
debug: Unable to open /home/paul/.ssh2/ssh2_config
warning: Development-time debugging not compiled in.
warning: To enable, configure with --enable-debug and recompile.
debug: connecting to kodos...
debug: entering event loop
debug: ssh_client_wrap: creating transport protocol
debug: Ssh2Client/sshclient.c:1015: creating userauth protocol
debug: Ssh2Client/sshclient.c:349: Host key found from database.
debug: Unable to open /home/paul/.ssh2/identification
debug: Ssh2AuthClient/sshauthc.c:304: Method 'publickey' disabled.
debug: Ssh2AuthPasswdClient/authc-passwd.c:82: Starting password query...
paul's password:
debug: Ssh2/ssh2.c:472: Authentication successful.
debug: Requesting X11 forwarding with authentication spoofing.
Last login: Fri May 19 2000 15:44:42
No mail.
TERM = (xterm)
Fri May 19 13:05:50 EDT 2000
kodos-1: xterm
Suspended
kodos-2: bg
[1] xterm &
kodos-3:
kodos-3:
kodos-3:
kodos-3:
kodos-3: exit
logout
debug: Got session close with exit_status=0
debug: Forking... parent pid = 26110
debug: num_channels now 1
warning: ssh2[26113]: number of forwarded channels still open, forked to background to
wait for completion.
oxmyx-62: debug: uninitializing event loop
so the question now is why is it not forking? I'm going to run sshd at a
higher debug level and perhaps use truss or strace to what else might be going
on. Is this behavior familiar to anyone?
Thanks again,
Chris
>
> Hi all,
>
> I'm encountering a mysterious problem. using ssh2 >= 2.0.13 to
> connect to a machine running sshd2 2.0.13. I start an xterm in the background and
> exit from the original connection. I would expect to see something to the
> effect of "ssh blah blah: connection still open. forking process to background" and
> my xterm would still be protected by encryption. However, I get no such
> message. To confirm that the xterm was not doing any encryption I snooped and
> could see everything. This was very alarming. The strange thing is that I'm able to
> get it to work from one machine. However, this isn't very helpful.
>
> Any ideas? Why does the X11 forwarding seem not to be working? No, I didn't turn
> it off at build time or afterward in the /etc files. Yes, when I built ssh configure
>found
> the X stuff in /usr/openwin.
>
> Thanks,
> Chris
>
>