Skip to content

[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

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

scumdestroy
Copy link

@scumdestroy scumdestroy commented Feb 18, 2022

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

@netlify
Copy link

netlify bot commented Feb 18, 2022

✔️ 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`.
Copy link
Collaborator

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?

Copy link
Author

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
Copy link
Collaborator

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.

Copy link
Author

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
Copy link
Collaborator

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?

Copy link
Author

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)].
Copy link
Collaborator

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?

Copy link
Author

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
Copy link
Collaborator

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@scumdestroy
Copy link
Author

Ok, fixed what you mentioned and also annihilated just about every time I said "you" or "our" anywhere in the document

@wildmanonline wildmanonline added New Guide Needs edit This content needs a tech and copy edit. labels May 13, 2024
@wildmanonline wildmanonline changed the title Initial draft of networking/ssh/advanced-tunneling guide [New] Advanced SSH Tunneling and Port-Forwarding Uses and Configurations May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs edit This content needs a tech and copy edit. New Guide
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants