NMT CSE Wiki

Dept. of Computer Science & Engineering

User Tools

Site Tools


commons:ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
commons:ssh [2017/09/19 15:31]
kschmittle
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
Line 4: Line 4:
 When you log in via SSH, you may be shown a key fingerprint.  If you are, make sure it matches the ones listed below: When you log in via SSH, you may be shown a key fingerprint.  If you are, make sure it matches the ones listed below:
 <code> <code>
-lovecraft (login/ada):  4c:c0:a4:00:68:e6:07:f2:3d:57:09:f5:20:1d:f7:e4+lovecraft (login/ada):  ECDSA:   ysSn6JRXvNBDL0J11T5UtAOhIF+pg2NrKCrx/5p6WEE 
 +                        RSA:     kxF3cGAcHHtVlDPCEeM0FVnpf5hVFDLMz7Q4sSlbLBQ 
 +                        DSA:     EcyZqJDX8GISs3inOxxlyY5Z6lJdfkbQ9bENo6zF1L4 
 +                        ED25519: nzI/QPxCyL5+7cplAg46DqSmID/69icupCfWxIYBxwQ 
 +                         
 +                        ####################### md5 ######################## 
 +                         
 +                        ECDSA:   2d:a7:36:0d:7f:6e:32:05:91:92:13:43:f1:5d:c1:0a 
 +                        RSA:     63:65:13:95:a9:d7:3d:ad:7f:5d:4c:c7:d6:fe:45:2f 
 +                        DSA    21:f4:54:2b:71:ce:a0:9d:ad:fd:49:1b:ad:84:14:35 
 +                        ED25519: 50:13:c8:5f:fd:f9:f3:f2:9c:42:6c:81:65:ef:e2:54                         
 +                        
 edison    (hpc1):       b4:92:c1:34:3d:ce:f8:d0:e4:ae:74:aa:32:37:30:96 edison    (hpc1):       b4:92:c1:34:3d:ce:f8:d0:e4:ae:74:aa:32:37:30:96
 tesla     (hpc2):       db:51:d5:39:9a:be:22:55:51:b8:d7:ca:56:a3:50:09 tesla     (hpc2):       db:51:d5:39:9a:be:22:55:51:b8:d7:ca:56:a3:50:09
 </code> </code>
-If a key does not match, please inform a system administrator, and do NOT enter your password.+**If a key does not match, inform a system administrator immediately, and do NOT enter your password!**
  
 On Linux or OS X you would type the following into a terminal: On Linux or OS X you would type the following into a terminal:
Line 38: Line 49:
  
     Host cs     Host cs
-        HostName ada.cs.nmt.edu+        HostName login.cs.nmt.edu
         User username         User username
         DynamicForward 5050         DynamicForward 5050
                  
-The first three lines add a host alias for you so that you can login with ''ssh cs'' instead of ''ssh username@ada.cs.nmt.edu'', which is a lot easier to type! The last line creates a tunnel on port 5050 which you can use to redirect traffic through the computer you're signed into (our login server, in this case). What port you use doesn't matter, 5050 is just an example. Now you can configure a proxy on your operating system, or in your web browser ([[https://addons.mozilla.org/en-us/firefox/addon/foxyproxy-standard/|Foxy Proxy]] is a good tool for Firefox, [[https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm|Proxy Switchy]] for Chrome).+The first three lines add a host alias for you so that you can login with ''ssh cs'' instead of ''ssh username@login.cs.nmt.edu'', which is a lot easier to type! The last line creates a tunnel on port 5050 which you can use to redirect traffic through the computer you're signed into (our login server, in this case). What port you use doesn't matter, 5050 is just an example. Now you can configure a proxy on your operating system, or in your web browser ([[https://addons.mozilla.org/en-us/firefox/addon/foxyproxy-standard/|Foxy Proxy]] is a good tool for Firefox, [[https://chrome.google.com/webstore/detail/proxy-switchysharp/dpplabbmogkhghncfbfdeeokoefdjegm|Proxy Switchy]] for Chrome).
  
 Regardless of the tool you're setting this up with, all you need to know is: Regardless of the tool you're setting this up with, all you need to know is:
Line 49: Line 60:
   - The Proxy Host is ''127.0.0.1'' or ''localhost'', which is a loopback address referring to your computer.   - The Proxy Host is ''127.0.0.1'' or ''localhost'', which is a loopback address referring to your computer.
   - The port is 5050, or any other port number as long as it matches the ''DynamicForward'' option in your ssh config.   - The port is 5050, or any other port number as long as it matches the ''DynamicForward'' option in your ssh config.
 +
 +For example, on Ubuntu 18.04, you can configure your proxy in settings like so:
 +  - Go to settings->network and click on the gear next to "Network Proxy"
 +  - Select "Manual" and enter ''127.0.0.1'' in the SOCKS Host field.
 +  - Enter your desired port number.
 +  - Clear the "Ignore Hosts" field at the bottom.
 +  - Configure your browser to use your system's proxy settings.
  
 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.
 +
 +
commons/ssh.txt · Last modified: 2020/10/15 14:58 by tylercharity