[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenSSH SCP question



put at the top of your local or system wide, ssh config file:
host test.edu
  port 99
host bob.edu
  port 99


Dom
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Dom De Vitto                                       Tel. 07855 805 271
http://www.devitto.com                         mailto:dom@devitto.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Where do you want to go today?  Same as every day.... Windows Update.

-----Original Message-----
From: owner-misc@openbsd.org [mailto:owner-misc@openbsd.org] On Behalf Of
Sean P. Kane
Sent: Tuesday, February 10, 2004 5:41 PM
To: misc@openbsd.org
Subject: OpenSSH SCP question

 How do you use scp to transfer a file between two remote machines that
both use a non-standard SSH port? The -P parameter seems to only  affect the
second ("remote") host. So using a line like:

 scp -P 99 oracle@test.edu:/home/oracle/backup.sh
 oracle@bob.edu:/home/oracle


 doesn't seem to work when both machines are running ssh on port  99. 
 Port number and host names changed to protect the innocent.

 Any ideas?

 thanks,
 Sean

 spkane@genomatica.com