SSH Port Forwarding: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==References== * [https://www.ssh.com/ssh/tunneling/example SSH Port Forwarding or Tunneling] * Enable Disable Port * Convention of Port...") |
No edit summary |
||
Line 1: | Line 1: | ||
==Local Forwarding== | |||
'''Python Flask''' | |||
ssh -L 5000:localhost:5000 [email protected] | |||
http://localhost:5000/ | |||
'''RabbitMQ''' | |||
ssh -L 15672:localhost:15672 [email protected] | |||
http://localhost:15672/ | |||
username: guest | |||
password: guest | |||
'''Node Red''' | |||
ssh -L 1880:localhost:1880 [email protected] | |||
http://localhost:1880/ | |||
'''Mosquitto''' | |||
ssh -L 1883:localhost:1883 [email protected] | |||
==Remote Forwarding== | |||
<code>nano /etc/ssh/sshd_config</code> | |||
<source lang="ini" highlight="3" start="86" line> | |||
#AllowAgentForwarding yes | |||
#AllowTcpForwarding yes | |||
GatewayPorts yes | |||
X11Forwarding yes | |||
#X11DisplayOffset 10 | |||
#X11UseLocalhost yes | |||
#PermitTTY yes | |||
PrintMotd no | |||
#PrintLastLog yes | |||
#TCPKeepAlive yes | |||
#PermitUserEnvironment no | |||
#Compression delayed | |||
#ClientAliveInterval 0 | |||
#ClientAliveCountMax 3 | |||
#UseDNS no | |||
#PidFile /var/run/sshd.pid | |||
#MaxStartups 10:30:100 | |||
#PermitTunnel no | |||
#ChrootDirectory none | |||
#VersionAddendum none | |||
</source> | |||
==References== | ==References== | ||
* [https://www.techrepublic.com/article/how-to-use-local-and-remote-ssh-port-forwarding/ Local and Remote SSH port forwarding] | |||
* [https://www.ssh.com/ssh/tunneling/example SSH Port Forwarding or Tunneling] | * [https://www.ssh.com/ssh/tunneling/example SSH Port Forwarding or Tunneling] | ||
* [https://stackoverflow.com/questions/29936948 SSH Multiple Ports Forward] | |||
* [[Bash/Port|Enable Disable Port]] | * [[Bash/Port|Enable Disable Port]] | ||
* [[Convention for Port|Convention of Port]] | * [[Convention for Port|Convention of Port]] | ||
* [[Bash/Port/Forward|Port Forward]] | * [[Bash/Port/Forward|Port Forward]] | ||
* [[RabbitMQ]] | |||
* [[Mosquitto]] | |||
* [[Flask]] |
Revision as of 06:46, 30 May 2020
Local Forwarding
Python Flask ssh -L 5000:localhost:5000 [email protected] http://localhost:5000/
RabbitMQ ssh -L 15672:localhost:15672 [email protected] http://localhost:15672/ username: guest password: guest
Node Red ssh -L 1880:localhost:1880 [email protected] http://localhost:1880/
Mosquitto ssh -L 1883:localhost:1883 [email protected]
Remote Forwarding
nano /etc/ssh/sshd_config
#AllowAgentForwarding yes
#AllowTcpForwarding yes
GatewayPorts yes
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PermitTTY yes
PrintMotd no
#PrintLastLog yes
#TCPKeepAlive yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none