4,461
edits
Line 338: | Line 338: | ||
== SSH Tunneling == | == SSH Tunneling == | ||
Say I'm trying to access 10.101.1.10 server via SSH which is behind a restrictive firewall through 64.106.170.61. | Say I'm trying to access 10.101.1.10 server via SSH which is behind a restrictive firewall through 64.106.170.61. The first command will map the port 50010 of the local machine to port 22 of 10.101.1.10 that is accessible from 64.106.170.61. | ||
{| class="wikitable" border="1" style="border-collapse:collapse" | {| class="wikitable" border="1" style="border-collapse:collapse" | ||
! style="text-align: center;"| Description | ! style="text-align: center;"| Description | ||
! Command | ! Command | ||
! | ! Distro | ||
|- | |- | ||
| Create a SSH tunnel & connect via port 50010 | | Create a SSH tunnel & connect via port 50010 | ||
| class="cli" | $ ssh -L 50010:10.101.1.10:22 mhan@64.106.170.61<br>$ ssh -p 50010 127.0.0.1 | | class="cli" | $ ssh -L 50010:10.101.1.10:22 mhan@64.106.170.61<br>$ ssh -p 50010 127.0.0.1 | ||
| | | | ||
|} | |} | ||