On Jan 1, 2009, at 8:07 PM, Peter Stuge wrote: > Adam Jacob Muller wrote: >> Error starting up SSH connection(-5): Unable to exchange encryption >> keys >> >> any ideas what a solution for this might be? >> I know that this router is "odd" even openssh to this router behaves >> badly. >> >> [a...@x]$ ssh -V >> OpenSSH_5.0p1, OpenSSL 0.9.7l 28 Sep 2006 >> [a...@x]$ ssh a...@rooter >> Keyboard-interactive authentication >> Enter password for adam: >> channel 0: open failed: resource shortage: Channel open failed >> >> openssh <= 4.6 however works fine >> >> this is discussed a bit here: >> http://marc.info/?l=openssh-unix-dev&m=120904151220470&w=2 >> >> >> >> Any ideas how to wedge libssh2 to get it to play nicely with this >> router? >> I've tested with libssh2-0.18, 1.0 and the latest snap with >> identical results. > > The OpenSSH problem is that the switch always tries to use the > maximum window size reported by the remote (OpenSSH) but it doesn't > have enough resources to do that so the channel open fails. > > libssh2 kex fail is interesting. Can you get more debugging from > libssh2? > > > //Peter
Peter, Any chance you could point me in the right direction with regards to enabling debugging? for some reason this seems to be not behaving as I would expect. This php code seems like it should give some debug messages but the script doesn't output any. function ssh2_debug($message, $language, $always_display) { printf("%s %s %s\n",$message,$language,$always_display); } ssh2_connect("a.b.c.d","22",NULL,array("debug"=>"ssh2_debug")); Any idea how to GET more debug from it :) - Adam ------------------------------------------------------------------------------ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel