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 [2016/09/06 13:32]
kerickso [SSH]
commons:ssh [2019/02/24 17:20] (current)
hashfastr [Dynamic Forwarding]
Line 1: Line 1:
 ====== SSH ====== ====== SSH ======
-SSH stands for Secure Shell. It is an encrypted protocol which you can use to securely access a remote computer over the network. The CS department has a login server, ''​login.cs.nmt.edu''​ or ''​ada.cs.nmt.edu'',​ which anyone with a [[commons:​accounts|CSE account]] can access via SSH. This allows you to work in a Linux environment from your home or laptop, which gives you access to the programming environment and tools that many of the courses in our curriculum expect you to use.+SSH stands for Secure Shell. It is an encrypted protocol which you can use to securely access a remote computer over the network. The CS department has a login server, ''​login.cs.nmt.edu''​ or ''​lovecraft.cs.nmt.edu'',​ which anyone with a [[commons:​accounts|CSE account]] can access via SSH. This allows you to work in a Linux environment from your home or laptop, which gives you access to the programming environment and tools that many of the courses in our curriculum expect you to use. 
 + 
 +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>​ 
 +lovecraft (login/​ada): ​ ECDSA: ​  ​ysSn6JRXvNBDL0J11T5UtAOhIF+pg2NrKCrx/​5p6WEE 
 +                        RSA:     ​kxF3cGAcHHtVlDPCEeM0FVnpf5hVFDLMz7Q4sSlbLBQ 
 +                        DSA:     ​EcyZqJDX8GISs3inOxxlyY5Z6lJdfkbQ9bENo6zF1L4 
 +                        ED25519: nzI/​QPxCyL5+7cplAg46DqSmID/​69icupCfWxIYBxwQ 
 +                         
 +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 
 +</​code>​ 
 +**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 9: Line 21:
 If you're working on a laptop, you may also be interested in [[https://​mosh.mit.edu/​|mosh]] - Mobile Shell. It's similar to ssh in functionality,​ but is able to maintain your connection even after disconnecting from the network for a long time or reconnecting to a different network than you used to login - which happens all the time when you're on the go. If you're working on a laptop, you may also be interested in [[https://​mosh.mit.edu/​|mosh]] - Mobile Shell. It's similar to ssh in functionality,​ but is able to maintain your connection even after disconnecting from the network for a long time or reconnecting to a different network than you used to login - which happens all the time when you're on the go.
  
-==== RSA Keys ====+==== Passwordless login using RSA Keys ====
  
 It is also possible to use ssh to generate an RSA keypair so you can cryptographically authenticate yourself to a server without using a password. To generate ssh keys on Linux or OSX you can enter the following command: It is also possible to use ssh to generate an RSA keypair so you can cryptographically authenticate yourself to a server without using a password. To generate ssh keys on Linux or OSX you can enter the following command:
Line 30: Line 42:
  
     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:
commons/ssh.1473190374.txt.gz · Last modified: 2018/07/16 15:33 (external edit)