3 ms·
Same but without having to edit your .ssh/config: ssh -R localhost:2222:localhost:22 remote scp -P 2222 /path/to/file localhost:~
by bnoordhuis 16y ago
Same but without having to edit your .ssh/config:
ssh -R localhost:2222:localhost:22 remote
scp -P 2222 /path/to/file localhost:~
- 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: