I have a case when there are 2 remote hosts, each with a unique port number, which i both need to indicate when using SCP command. There is no problem indicating the unique (non 22) port number for the first one, but i can't figure out how to indicate it for the second one.
Here is how it looks like now -
scp -P 1234 [email protected]:/path/to/file [email protected]:/path/to/directory
no idea how to do this with arguments, but you can try editing ~/.ssh/config