Skip to content

Instantly share code, notes, and snippets.

@jjlorenzo
Last active October 19, 2020 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjlorenzo/ac730b3b8de9644a72b185c909170168 to your computer and use it in GitHub Desktop.
Save jjlorenzo/ac730b3b8de9644a72b185c909170168 to your computer and use it in GitHub Desktop.
ssh -R 52698:localhost:52698 demr-web01
nc -l -k -p 52699 -c "nc 127.0.0.1 52698"
ssh -g -L 172.17.0.1:52699:localhost:52698 -N localhost
rmate -p 52699 --host 172.17.0.1 /src/update-container-app
########################
1.-
/etc/ssh/sshd_config
GatewayPorts clientspecified
2.-
ssh -R 172.17.0.1:52698:localhost:52698 -R 52698:localhost:52698 demr-web01
3.-
rmate --host 172.17.0.1 /src/update-container-app
sudo socat tcp-listen:80,reuseaddr,fork tcp:localhost:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment