From nobody@FreeBSD.ORG Mon Mar 15 09:02:04 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 8932314FC8; Mon, 15 Mar 1999 09:02:03 -0800 (PST)
Message-Id: <19990315170203.8932314FC8@hub.freebsd.org>
Date: Mon, 15 Mar 1999 09:02:03 -0800 (PST)
From: ckbisk@FreeBSD.ORG
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: ssh2 port doesn't symlink /etc/ssh2 which ssh2d needs for ssh1d compatability
X-Send-Pr-Version: www-1.0

>Number:         10600
>Category:       ports
>Synopsis:       ssh2 port doesn't symlink /etc/ssh2 which ssh2d needs for ssh1d compatability
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 15 09:10:00 PST 1999
>Closed-Date:    Sun May 2 18:23:11 PDT 1999
>Last-Modified:  Sun May  2 18:24:54 PDT 1999
>Originator:     Chad K. Bisk
>Release:        3.1-RELEASE
>Organization:
www.etci.com
>Environment:
> uname -a
FreeBSD freebsd.etci.com 3.1-RELEASE FreeBSD 3.1-RELEASE #1: Tue Feb 23 15:22:10 EST 1999     ckbisk@freebsd.etci.com:/usr/src/sys/compile/ETCI  i386
> 
>Description:
The ssh2 port breaks ssh1 compatability because the installed ssh2d can't find its config file that enables ssh1 compat.  ssh2 expects its config file to be found in /etc/ssh2/.
>How-To-Repeat:
install ssh2 port
connect with ssh1 client
connection will fail because the connection will be closed by the server because sshd2 can't find its config file with the needed info.
>Fix:
Add code to Makefile to symlink /etc/ssh2 to /usr/local/etc/ssh2 on install.

>Release-Note:
>Audit-Trail:

From: Issei Suzuki <issei@jp.freebsd.org>
To: freebsd-gnats-submit@freebsd.org
Cc: ckbisk@FreeBSD.ORG
Subject: ports/10600: ssh2 port doesn't symlink /etc/ssh2 which ssh2d needs for ssh1d compatability
Date: Wed, 17 Mar 1999 12:47:21 +0900

 > The ssh2 port breaks ssh1 compatability because the installed ssh2d
 > can't find its config file that enables ssh1 compat.  ssh2 expects its
 > config file to be found in /etc/ssh2/.
 
     No.  Ssh2 in ports-current expects its config file to be found in
 ${PREFIX}/etc/ssh2.  I suppose the problem comes from other reason,
 maybe he failed to compile sshd2 to support ssh1 client.
 
     To compile sshd2 with ssh1 client support, you must install sshd1
 before building sshd2.  Only when configure script of sshd2 found
 sshd1, sshd2 will be compiled to support ssh1 client.  That's why
 security/sshd2 port BUILD_DEPNDS on security/ssh port.
 
 
     I compile sshd2 as follows and all things goes OK.
 
 # cd /usr/ports/security/ssh2
 # make USE_SSH1=YES install
   (USE_SSH1=YES is default)
 # /usr/local/etc/rc.d/sshd.sh
 
 
 The log on client side when I connect to sshd2 with ssh1 client:
 
     issei@tole% ssh1 -v localhost
     SSH Version 1.2.26 [i386--freebsd3.1], protocol version 1.5.
     Standard version.  Does not use RSAREF.
     tole.issei.org: Reading configuration data /home/issei/.ssh/config
     tole.issei.org: Applying options for *
     tole.issei.org: Reading configuration data /usr/local/etc/ssh_config
     tole.issei.org: ssh_connect: getuid 3001 geteuid 0 anon 1
     tole.issei.org: Connecting to 127.0.0.1 port 22.
     tole.issei.org: Connection established.
     tole.issei.org: Remote protocol version 1.99, remote software version 2.0.12 (non-commercial)
     tole.issei.org: Waiting for server public key.
     tole.issei.org: Received server public key (768 bits) and host key (1024 bits).
     tole.issei.org: Forcing accepting of host key for localhost.
     tole.issei.org: Host '127.0.0.1' is known and matches the host key.
     tole.issei.org: Initializing random; seed file /home/issei/.ssh/random_seed
     tole.issei.org: Encryption type: 3des
     tole.issei.org: Sent encrypted session key.
     tole.issei.org: Installing crc compensation attack detector.
     tole.issei.org: Received encrypted confirmation.
     tole.issei.org: No agent.
     tole.issei.org: Trying RSA authentication with key 'issei@issei.org'
     tole.issei.org: Received RSA challenge from server.
     Enter passphrase for RSA key 'issei@issei.org':
 
 
 The log on server side when I connect to sshd2 with ssh1 client:
 
     root@tole# sshd2 -v
     debug: Reading private host key from /usr/local/etc/ssh2/hostkey
     debug: Key comment: 1024-bit dsa hostkey
     debug: Reading public host key from: /usr/local/etc/ssh2/hostkey.pub
     debug: Becoming server.
     debug: Creating listener
     debug: Listener created
     sshd2[73907]: Listener created on port 22.
     sshd2[73907]: Daemon is running.
     debug: Running event loop
     sshd2[73907]: connection from "127.0.0.1"
     debug: Sshd2/sshd2.c:309/new_connection_callback:
     new_connection_callback
     debug: ssh_server_wrap: creating transport protocol
     debug: ssh_server_wrap: creating userauth protocol
     debug: new_connection_callback returning
     debug: Ssh2Transport/trcommon.c:592/ssh_tr_input_version: Remote version: SSH-1.5-1.2.26
     debug: Remote version: SSH-1.5-1.2.26
     debug: Executing /usr/local/sbin/sshd1 for ssh1 compatibility.
 
 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 2 18:23:11 PDT 1999 
State-Changed-Why:  
As Mr. Suzuki pointed out you must install the ssh1 port before the 
ssh2 port to enable ssh1-compat mode in the latter. 
>Unformatted:
