-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[New] Advanced SSH Tunneling and Port-Forwarding Uses and Configurations #5191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
✔️ Deploy Preview for nostalgic-ptolemy-b01ab8 ready! 🔨 Explore the source changes: 40f010b 🔍 Inspect the deploy log: https://app.netlify.com/sites/nostalgic-ptolemy-b01ab8/deploys/622adda806f4410009df99e7 😎 Browse the preview: https://deploy-preview-5191--nostalgic-ptolemy-b01ab8.netlify.app |
|
||
## Preparing SSH for Tunneling | ||
|
||
1. Set your SSH configuration file to allow Port-Forwarding. By default, it is located at `/etc/ssh/ssh_config`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this step to be done on the local machine, or the ssh server? Or both?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
|
||
2. Make sure the machines involved have at least three network interfaces (for example, `loopback`, `eth0` and `tun0`). | ||
|
||
ifconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proper amount of indenting for a line like this is 8 spaces. 4 to keep it inline with the numbered list, and 4 to create a code block.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
Local port forwarding is denoted by the `-L` option. | ||
|
||
```bash | ||
ssh -L local_port:destination:destination_portbash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "bash" at the end of this line meant to be there? Is it meant to signify the username@10.10.10.2 part?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In markdown, you can set syntax highlighting by putting the code language in this format into the code block. but since y'all use 8 spaces for code blocks instead, I'll go ahead and pull these out
|
||
## Dynamic Port Forwarding | ||
|
||
This option will use your desired port as a SOCKS proxy, allowing you to run traffic through a tool like `proxychains` or a browser extension like `FoxyProxy`[[[FoxyProxy · GitHub](https://github.com/foxyproxy)]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of tool is proxychains?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Using our example IPs, we would run the following in our terminal. | ||
|
||
```bash | ||
ssh -R 8080:127.0.0.1:3000 user@10,10,10,2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the commas here intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Ok, fixed what you mentioned and also annihilated just about every time I said "you" or "our" anywhere in the document |
Hey there!
My first article ever for Linode - hope it looks OK!
Please let me know if I need to change anything or fix the formatting in some way.
Thanks for reading!
Jann