Last active
March 28, 2021 15:04
-
-
Save bqhuyy/c2ed908fa04f5eafad6b3c3d88fa0e4c to your computer and use it in GitHub Desktop.
Revisions
-
bqhuyy revised this gist
Mar 28, 2021 . 1 changed file with 2 additions and 2 deletions.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,9 +1,9 @@ # reverse port forwarding Dùng để map port máy local đến server <br> `ssh [-f: background] [-N: forwarding only] -R <host_port>:localhost:<client_port> <host_domain>` # map port Dùng để map port server về local <br> `ssh [-f] [-N] -L 0.0.0.0:<client_port>:localhost:<host_port> user@<host_domance> -p <port>` # using public ip to host server -
bqhuyy revised this gist
Mar 28, 2021 . 1 changed file with 6 additions 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,5 +1,10 @@ # reverse port forwarding Dùng để map port máy local đến server `ssh [-f: background] [-N: forwarding only] -R <host_port>:localhost:<client_port> <host_domain>` # map port Dùng để map port server về local `ssh [-f] [-N] -L 0.0.0.0:<client_port>:localhost:<host_port> user@<host_domance> -p <port>` # using public ip to host server 1. open port in router (for public ip) => map **local** port and **public** port -
bqhuyy created this gist
Mar 28, 2021 .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,8 @@ # reverse port forwarding `ssh [-f: background] [-N: forwarding only] -R <host-port>:localhost:<client-port> <host_domain>` # using public ip to host server 1. open port in router (for public ip) => map **local** port and **public** port 2. use openssh to host server - `sudo vim /etc/ssh/sshd_config` => setting port - `sudo service ssh start`