Last active
October 14, 2024 11:32
Revisions
-
wey-gu revised this gist
Oct 14, 2024 . No changes.There are no files selected for viewing
-
wey-gu revised this gist
Oct 14, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ 1. ensure remote server enables remote port fwd on non-loopback ip ```bash #/etc/ssh/sshd_config -
wey-gu revised this gist
Oct 14, 2024 . No changes.There are no files selected for viewing
-
wey-gu renamed this gist
Oct 14, 2024 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
wey-gu created this gist
Oct 14, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,23 @@ 0. ensure remote server enables remote port fwd on non-loopback ip ```bash #/etc/ssh/sshd_config GatewayPorts yes ``` 2. ssh ```bash ssh -R [remote_port]:[destination_address]:[local_port] [username]@[ssh_server] ``` 3. check listening hosts from remote server say remote_port is `18000`: ``` $ ss -plunt | grep 18000 Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process tcp LISTEN 0 128 0.0.0.0:18000 0.0.0.0:* users:(("sshd",pid=2714723,fd=10)) ```