Hi everyone, I know scp is kind of the red-headed stepchild of the suite, but I'd like to propose an extension to the syntax for remote-remote passthrough using the "-3" option. Currently the syntax is essentially scp -3 [ -P port ] [user@]host1:file [user@]host2:file This is great, as long as both remotes are on the same port. It causes difficulties if host1 and host2 are not on the same port. I'd like to propose the syntax extenision: [user@]host[,port]:file This allows the two remotes to be on separate ports. --- Scott Neugroschl | XYPRO Technology Corporation 4100 Guardian Street | Suite 100 |Simi Valley, CA 93063 | Phone 805 583-2874|Fax 805 583-0124 |
On Fri, Feb 27, 2015 at 12:38 PM, Scott Neugroschl <scott_n at xypro.com> wrote:> > This allows the two remotes to be on separate ports.You could also put "Port 1234" into ~/.ssh/config or ssh_config for one or both of the hosts. -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Ah. Good point. Hadn?t thought of that one! Thanks. I withdraw the suggestion. From: dtucker at dtucker.net [mailto:dtucker at dtucker.net] On Behalf Of Darren Tucker Sent: Friday, February 27, 2015 9:55 AM To: Scott Neugroschl Cc: OpenSSH Unix Dev Mailing List (openssh-unix-dev at mindrot.org) Subject: Re: remote-remote scp On Fri, Feb 27, 2015 at 12:38 PM, Scott Neugroschl <scott_n at xypro.com<mailto:scott_n at xypro.com>> wrote: This allows the two remotes to be on separate ports. You could also put "Port 1234" into ~/.ssh/config or ssh_config for one or both of the hosts. -- Darren Tucker (dtucker at zip.com.au<http://zip.com.au>) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.