This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
commons:ssh [2020/10/15 14:58] tylercharity [Dynamic Forwarding] Added a more in-depth tutorial for setting up an ssh proxy in ubuntu 18.04 |
commons:ssh [2021/01/08 19:27] (current) hashfastr |
||
---|---|---|---|
Line 46: | Line 46: | ||
==== Dynamic Forwarding ==== | ==== Dynamic Forwarding ==== | ||
- | You can also configure ssh to use any computer you login to as a SOCKS proxy. You can use this to forward your network traffic so that it appears to be coming from the remote machine you're logged into instead of your personal computer. To do that, you can edit or create | + | You can also configure ssh to use any computer you login to as a SOCKS proxy. You can use this to forward your network traffic so that it appears to be coming from the remote machine you're logged into instead of your personal computer. To do that, you can run the following command: |
- | Host cs | + | < |
- | | + | ssh -D 1337 -q -C -N username@login.cs.nmt.edu |
- | User username | + | </code> |
- | DynamicForward 5050 | + | |
- | + | ||
- | The first three lines add a host alias for you so that you can login with '' | + | |
- | Regardless of the tool you're setting this up with, all you need to know is: | + | The command will hang (not show any output and not quit), so just minimize |
- | - The Proxy type is SOCKSv5 | + | - Proxy type: SOCKSv5 |
- | - The Proxy Host is '' | + | - Proxy Host: '' |
- | - The port is 5050, or any other port number as long as it matches the '' | + | - Proxy port: 1337 |
- | For example, on Ubuntu 18.04, you can configure your proxy in settings like so: | + | If need be you can change the port number by replacing the number following the '' |
- | - Go to settings-> | + | |
- | - Select " | + | For example, on Firefox go to preferences |
- | - Enter your desired port number. | + | |
- | - Clear the " | + | |
- | - Configure your browser to use your system' | + | |
This won't be incredibly useful for most users, but it's good general information to know about how ssh works and what it can do. | This won't be incredibly useful for most users, but it's good general information to know about how ssh works and what it can do. | ||