-
-
Save jooni22/860938d7e3d214af3b6f8e8fec36652d to your computer and use it in GitHub Desktop.
SSH Tunnel
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 characters
# Scenario | |
# You have control of one computer <remote_address> behind NAT and its public internet facing router <sshd_address>. | |
# You want to access them from another computer <local_address> that is behind another uncontrolled NAT, | |
# and also from <remote_address> to this <local_address>. | |
# Run following command in <local_address>. | |
# Enable sock5 proxy and allow remote access of local RDP | |
ssh -R 0.0.0.0:2222:127.0.0.1:3389 -D 8765 -N <sshd_address> | |
# Access remote SSH and another computer's RDP | |
ssh -L 2222:<remote_address>:3389 <sshd_address> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment