OpenSSH : SSH Port Forwarding2023/12/19 |
It's possible to forward a port to another port with SSH port forwarding.
|
|
[1] | For example, set SSH Port Forwarding that requests to port [8081] on [dlp.srv.world (10.0.0.30)] are forwarded to port [80] on [node01.srv.world (10.0.0.51)]. |
# SSH login from source host to target host freebsd@dlp:~ $ ssh -L 10.0.0.30:8081:10.0.0.51:80 freebsd@node01.srv.world (freebsd@node01.srv.world) Password for freebsd@node01.srv.world: # password of the user freebsd@node01:~ $ # confirm freebsd@node01:~ $ ssh dlp.srv.world "sockstat -l | grep 8081" Enter passphrase for key '/home/freebsd/.ssh/id_rsa': freebsd ssh 843 4 tcp4 10.0.0.30:8081 *:* # listen on 8081
# keep this login session |
[2] | Verify to access to a port on source Host you set from any client Host, then target port on target Host replies. |
Sponsored Link |