Compatibility with 1.2.16 (commercial)?

Markus Friedl markus.friedl at informatik.uni-erlangen.de
Wed Nov 1 04:11:56 EST 2000


On Mon, Oct 30, 2000 at 11:23:17AM -0800, Mark D. Baushke wrote:
> There is no good reason that an OpenSSH client should not be able to
> speak to a 1.4 protocol ssh server.

well, openssh does not support 1.4 so the client
should fall back to 1.3, could you please try this:

Index: sshconnect.c
===================================================================
RCS file: /home/markus/cvs/ssh/sshconnect.c,v
retrieving revision 1.79
diff -u -r1.79 sshconnect.c
--- sshconnect.c	2000/09/17 15:52:51	1.79
+++ sshconnect.c	2000/10/31 17:11:02
@@ -313,6 +313,7 @@
 	int remote_major, remote_minor, i, mismatch;
 	int connection_in = packet_get_connection_in();
 	int connection_out = packet_get_connection_out();
+	int minor1 = PROTOCOL_MINOR_1; 
 
 	/* Read other side\'s version identification. */
 	for (;;) {
@@ -366,9 +367,10 @@
 		}
 		if (remote_minor < 3) {
 			fatal("Remote machine has too old SSH software version.");
-		} else if (remote_minor == 3) {
+		} else if (remote_minor == 3 || remote_minor == 4) {
 			/* We speak 1.3, too. */
 			enable_compat13();
+			minor1 = 3;
 			if (options.forward_agent) {
 				log("Agent forwarding disabled for protocol 1.3");
 				options.forward_agent = 0;
@@ -394,7 +396,7 @@
 	/* Send our own protocol version identification. */
 	snprintf(buf, sizeof buf, "SSH-%d.%d-%.100s\n",
 	    compat20 ? PROTOCOL_MAJOR_2 : PROTOCOL_MAJOR_1,
-	    compat20 ? PROTOCOL_MINOR_2 : PROTOCOL_MINOR_1,
+	    compat20 ? PROTOCOL_MINOR_2 : minor1,
 	    SSH_VERSION);
 	if (atomicio(write, connection_out, buf, strlen(buf)) != strlen(buf))
 		fatal("write: %.100s", strerror(errno));





More information about the openssh-unix-dev mailing list