Displaying 3 results from an estimated 3 matches for "ssh2_capable".
2002 Jan 22
2
ssh-keyscan: xmalloc out of memory error
hi all,
I got "xmalloc: out of memory" when i used
ssh-keyscan to a remote host that is using
SSH protocol 2 and only protocol 2 (no fallback
to SSH protocol 1).
Looks to me more like ssh-keyscan doesn't talk
SSH protocol 2 to the server.
Please help.
Here is the exact error:
# /usr/local/bin/ssh-keyscan -v miad_1
# miad_1 SSH-2.0-OpenSSH_3.0.2p1
xmalloc: out of memory
2001 Jul 27
0
Updated ssh-keyscan patch for ssh2 support
...kie */
@@ -270,10 +292,70 @@
(void) buffer_get_int(&msg);
buffer_get_bignum(&msg, rsa->rsa->e);
buffer_get_bignum(&msg, rsa->rsa->n);
+
buffer_clear(&msg);
+
+ return (rsa);
+}
+
+static int
+hostjump(Key *hostkey)
+{
+ longjmp(kexjmp, (int)hostkey);
+}
+
+int
+ssh2_capable(int remote_major, int remote_minor)
+{
+ switch (remote_major) {
+ case 1:
+ if (remote_minor == 99)
+ return 1;
+ break;
+ case 2:
+ return 1;
+ default:
+ break;
+ }
+ return 0;
+}
+
+static Key *
+keygrab_ssh2(con *c)
+{
+ int j;
+
+ packet_set_connection(c->c_fd, c->c_fd);
+ enable_...
2012 Nov 24
0
ssh-keyscan continuity patch --
...", c->c_name);
break;
case ECONNREFUSED:
- break;
+ if (! log_verbose)
+ break;
+ /* fall thru */
default:
error("read (%s): %s", c->c_name, strerror(errno));
break;
@@ -443,14 +482,20 @@
datafellows = 0;
if (c->c_keytype != KT_RSA1) {
if (!ssh2_capable(remote_major, remote_minor)) {
+ if (log_verbose)
+ logit("%s doesn't support ssh2", c->c_name);
+ else
debug("%s doesn't support ssh2", c->c_name);
- confree(s);
- return;
+ confree(s);
+ return;
}
} else if (remote_major != 1) {...