scp port on remote hosts

Peter Stuge peter at stuge.se
Tue Jun 1 11:15:48 EST 2010


Miguel de Val Borro wrote:
> I would like to specify ports on both hosts to copy files between two
> remote computeres. Is there any way to do this with scp?

I don't think so. Suggest you use a host alias that you can configure
in .ssh/config on the remote host. Use hostname, hostkeyalias and
port.


//Peter


More information about the openssh-unix-dev mailing list