3 ms·
...and if you forget to enter the setup string during the initial connection, at any time during your ssh session into the remote system, you can enter ~C then
by glabifrons 16y ago
...and if you forget to enter the setup string during the initial connection, at any time during your ssh session into the remote system, you can enter ~C then the setup string.
So, to use the above port settings, when you find your file, you just type:
~CR2222:localhost:22 remote
Then you can issue the scp command just as above, or... if on Solaris (or using an old OpenSSH on "remote"):
scp -o Port=2222 file.tgz localhost: