I had the same problem, where ssh would hang on my old router with "debug2:
channel 0: open confirm rwindow 0 rmax 32768". I recompiled openssh with a
fix: http://qwerty12.maemobox.org/openssh_badrouter_fix/ and it worked for
me. 3 people (that I know of have tested it successfully): me, anders_gud &
tybor. I don't know about anders_gud but both me and tybor were using
netgear routers. I have since replaced my router with a thomson one and ssh
works fine without patching.

P.S, if you don't trust me, the patched packet.c file is there. So you can
rebuild your own openssh and diff the packet.c to see the change (it's a one
line change)

Regards,
Faheem

On Tue, Feb 10, 2009 at 12:56 PM, Martin Collins <mae...@mkcollins.org>wrote:

> When I try to connect to Debian or Kubuntu boxes from my N800 ssh
> hangs after successful authentication and eventually times out. They
> are running openssh 5.1p1. The N800 is running 4.7p1 and Diablo
> 5.2008.43-7
> Never had any problem with my 770. Can anyone suggest a solution?
>
> Here's the debug output:
>
>  $ ssh -v mar...@192.168.0.7
> OpenSSH_4.7p1  Debian-12.maemo2, OpenSSL 0.9.8e 23 Feb 2007
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
> debug1: Connecting to 192.168.0.7 [192.168.0.7] port 22.
> debug1: Connection established.
> debug1: identity file /home/user/.ssh/identity type -1
> debug1: identity file /home/user/.ssh/id_rsa type -1
> debug1: identity file /home/user/.ssh/id_dsa type -1
> debug1: Remote protocol version 2.0, remote software version OpenSS
> H_4.7p1 Debian-8ubuntu1.2
> debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_4.7p1  Debian-12.maemo 2
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> The authenticity of host '192.168.0.7 (192.168.0.7)' can't be estab lished.
> RSA key fingerprint is 78:9e:57:93:13:a8:95:05:9e:05:cf:e0:63:4c:39 :5a.
> Are you sure you want to continue connecting (yes/no)? yes
> Warning: Permanently added '192.168.0.7' (RSA) to the list of known hosts.
> debug1: ssh_rsa_verify: signature correct
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug1: SSH2_MSG_NEWKEYS received
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug1: Authentications that can continue: publickey,password
> debug1: Next authentication method: publickey
> debug1: Trying private key: /home/user/.ssh/identity
> debug1: Trying private key: /home/user/.ssh/id_rsa
> debug1: Trying private key: /home/user/.ssh/id_dsa
> debug1: Next authentication method: password
> mar...@192.168.0.7's password:
> debug1: Authentication succeeded (password).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> debug1: Sending environment.
> debug1: Sending env LC_CTYPE = en_GB
> debug1: Sending env LANG = en_GB
> debug1: Sending env LC_MESSAGES = en_GB
>
> <loooong wait>
>
> debug1: channel 0: free: client-session, nchannels 1
> Read from remote host 192.168.0.7: Connection timed out
> Connection to 192.168.0.7 closed.
> debug1: Transferred: stdin 0, stdout 0, stderr 92 bytes in 935.8 seconds
> debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.1
> debug1: Exit status -1
>
> I have AcceptEnv LANG LC* in sshd_config on the Kubuntu box, not on
> Debian - same result.
>
> Martin
> _______________________________________________
> maemo-users mailing list
> maemo-users@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-users
>
_______________________________________________
maemo-users mailing list
maemo-users@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-users

Reply via email to