From nobody@FreeBSD.org  Mon Feb 11 15:58:44 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4CAD837B404
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Feb 2002 15:58:43 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g1BNwhm19456;
	Mon, 11 Feb 2002 15:58:43 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202112358.g1BNwhm19456@freefall.freebsd.org>
Date: Mon, 11 Feb 2002 15:58:43 -0800 (PST)
From: Alan Larson <larson@paix.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: scp cannot talk to ssh2 sites that have Ssh1Compatability no
X-Send-Pr-Version: www-1.0

>Number:         34850
>Category:       misc
>Synopsis:       scp cannot talk to ssh2 sites that have Ssh1Compatability no
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 16:00:02 PST 2002
>Closed-Date:    Sat Jul 12 17:32:35 PDT 2003
>Last-Modified:  Sat Jul 12 17:32:35 PDT 2003
>Originator:     Alan Larson
>Release:        4.3 4.4
>Organization:
PAIX.net
>Environment:
multiple machines...  client running generic 4.3, for example
>Description:
scp (from openssh) cannot copy to/from systems running ssh2 with "Ssh1Compatibility no"
in /etc/ssh2/sshd2_config .

scp -v -p host.paix.net:watch3.in /tmp/fox.in
Executing: program /usr/bin/ssh host host.paix.net, user (unspecified), command scp -v -p -f watch3.in
larson@host.paix.net's password:
scp: warning: Executing scp1 compatibility.
select: Bad file descriptor


>How-To-Repeat:
      configure one system with ssh1/ssh2, disable ssh1 access in
/etc/ssh2/ssh2d_config -- then try the command above from a standard
openssh install on another freebsd system.

>Fix:
      no fix known.  One would be most welcome.

>Release-Note:
>Audit-Trail:

From: Alan Larson <larson@eng.paix.net>
To: freebsd-gnats-submit@FreeBSD.org, larson@paix.net
Cc:  
Subject: Re: misc/34850: scp cannot talk to ssh2 sites that have Ssh1Compatability no
Date: Thu, 23 May 2002 10:24:20 -0700 (PDT)

 Restatement of the problem:
   When a client is talking to sshd2 from openssh, scp will likely fail.
 
   This is because sshd2 will notice flags that indicate the transfer is
 in scp1 protocol, and will attempt to invoke scp1 via compatability.
 (This is somewhat similar to the invoking of sshd1 if that has not
 been disabled.)
 
   Unfortunately, the path in effect at the time is:
 	/usr/bin /bin /usr/local/ssh2/bin
 
 which doesn't contain the scp1 program or link, (presuming an
 installation of ssh2 in /usr/local).
 
   This is a problem for any client that speaks ssh2 link and authentication,
 but speaks scp1 for file copies.  openssh will do this.
 
   A test for this is:
 
 ssh -x host.foo.com 'echo $path;scp -p -f .cshrc' < /dev/zero
 
 which will echo the path it tried.
 
   The fix (done on the server system running sshd2) is:
 
 test -e /usr/local/ssh2/bin/scp1 || \
 	ln -s ../../ssh/bin/scp1 /usr/local/ssh2/bin/scp1
 
   I have installed this fix on our systems, and it solved the problem.
 
 
 	Alan
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sat Jul 12 17:32:16 PDT 2003 
State-Changed-Why:  
If this bug persists with later OpenSSH versions, please 
report it to the OpenSSH developers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34850 
>Unformatted:
