SCP two remote hosts with non-default ports

This is a discussion on SCP two remote hosts with non-default ports within the OpenSSH Development forums, part of the Networking and Network Related category; Hi, I'm having trouble finding the correct syntax to scp between two remote hosts with non-defaults ports. <...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-11-2007
gerryny@gmail.com
 
Posts: n/a
Default SCP two remote hosts with non-default ports

Hi,

I'm having trouble finding the correct syntax to scp between two
remote hosts with non-defaults ports.

<scp -P 1234 user@remotehost:/sourcefile -P 4321 user@remotehost:/destfile>

No matter what i've tried i cant get scp to connect both servers with
different ports. Is this even possible?

The workaround i've found is to use <ssh... "scp...">

Thanks,
gerryny at gmail dot com
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:44 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0