Possible bug? scp attempts to forward ports...

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Fri Jan 12 19:06:56 EST 2001


imho, this is a user error.

use special aliases for setting up forwardings, e.g.:

% cat .ssh/config
Host hosta*
	User name
Host hostafwd
	Localforward ...
	Hostname hosta
%

now

% scp hosta:file /dir

works.

but perhaps i'll add a clearallforwardings option to openssh,


On Thu, Jan 11, 2001 at 03:54:25PM -0600, Peter Smith wrote:
> I've been having a recurring problem using ssh and then scp.  I've got 2
> machines, client A and server B.  I'm using OpenSSH on both.  I've got a
> port-forward from server B in client A's "~/.ssh/config" file.  Normally I
> login to server B via ssh from client A.  With this session open (and a port
> forwarded) sometimes I go to a different terminal on client A and attempt to
> scp a file or two to server B.  However, I am unable to use scp _at_all_
> because of scp attempting, and failing, to forward the same port that the
> ssh connection already has open.
> 
> It seems to me that this is undesirable behavior...  Am I wrong?  If not,
> I'll work on creating a bug item, etc, for this.  I'm hoping it's not
> already known.  I've checked the FAQ which does not mention anything like
> this.
> 
> I've installed openssh v2.3.0p1 on client A and am still seeing this
> behavior.  Both machines are ix86 using the portable openssh.
> 
> Peter





More information about the openssh-unix-dev mailing list