According to IOS documentation*, you can initialize an SSH session from a switch/router and indicate the remote port to connect to, ex.
ssh -p 22222 126.96.36.199
SCP, however, doesn't seem to have that flexibility.
copy doesn't allow any connection-specific flags, nor is there an option to add any after entering the
scp address. This is a bit of an inconvenience when the remote host doesn't use the default SSH port.
I'm 99% certain that this is a "well that's obviously your answer" situation, but it's worth a shot. Are there any "deeper" commands that "unlock" the ability to specify the remote host's SCP/SSH port?
To help clarify, I'm referring to invoking
scp from the switch to the remote host. So on the switch/router you would be typing
copy scp:remote local or
copy local scp:remote
*(Should it matter, I'm mostly using 2960, 3750(X), 3850, 4506/4507, and 6509)