User Tools

Site Tools


techstaff:remote_access

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
techstaff:remote_access [2014/11/25 15:45] kauffmantechstaff:remote_access [2017/05/19 16:04] kauffman
Line 3: Line 3:
 To run programs on a CS machine when you're not sitting in front of it, connect over the network using ssh. Many computers are available for remote logins. To run programs on a CS machine when you're not sitting in front of it, connect over the network using ssh. Many computers are available for remote logins.
  
-==== Unix ====+===== Who ===== 
 +Anyone with a CS account. 
 + 
 +===== Where ===== 
 +The new official shell host for the Department of Computer Science is linux.cs.uchicago.edu. Please use it as your first choice to ssh into. 
 + 
 +=== linux.cs.uchicago.edu === 
 +This is actually uses DNS round robin to point to multiple servers: 
 +  * linux1.cs.uchicago.edu 
 +  * linux2.cs.uchicago.edu 
 +  * linux3.cs.uchicago.edu 
 + 
 +=== Specs === 
 +  * 16 Cores (2x 8core 3.1GHz Processors), 16 threads 
 +  * 64gb RAM 
 +  * 2x 500gb SATA 7200RPM in RAID1 
 + 
 + 
 +===== Unix =====
  
 Most Unix-like systems (including Mac OS X) include the ssh command line utility. To run command line utilities in Mac OS X, first launch Terminal, found in Applications * Utilities * Terminal. Linux distributions such as Ubuntu also include Terminal or xterm, where you can type commands like ssh. Most Unix-like systems (including Mac OS X) include the ssh command line utility. To run command line utilities in Mac OS X, first launch Terminal, found in Applications * Utilities * Terminal. Linux distributions such as Ubuntu also include Terminal or xterm, where you can type commands like ssh.
Line 9: Line 27:
 For example: For example:
  
-    $ ssh username@classes.cs.uchicago.edu+    $ ssh username@linux.cs.uchicago.edu
     Last login: Fri Apr 16 17:18:33 2009 from belmont.cs.uchicago.edu     Last login: Fri Apr 16 17:18:33 2009 from belmont.cs.uchicago.edu
     $      $ 
  
-==== Windows ==== +===== Windows ===== 
-=== Remote Terminal ===+==== Remote Terminal ====
 We suggest using PuTTY, but there are other choices as well. We suggest using PuTTY, but there are other choices as well.
-File Transfer 
  
 +==== File Transfer ====
 +
 +=== Unix ===
 To move files between your local machine and a CS login machine, we recommend using scp (which uses the ssh protocol underneath). To move files between your local machine and a CS login machine, we recommend using scp (which uses the ssh protocol underneath).
 Unix Unix
Line 25: Line 45:
 For example: For example:
  
-    $ scp username@classes.cs.uchicago.edu:/etc/passwd ./passwd +    $ scp username@linux.cs.uchicago.edu:~/file.txt ./ 
-    passwd               100% |*****************************|  1088       00:00 +    file.txt               100% |*****************************|  1088       00:00 
- +=== Windows ===
-=== File Transfer ===+
  
 We suggest WinSCP, which presents a familiar drag-and-drop interface, with two sections: one shows your local filesystem, and the other shows the remote filesystem. We suggest WinSCP, which presents a familiar drag-and-drop interface, with two sections: one shows your local filesystem, and the other shows the remote filesystem.
Line 39: Line 58:
 You can get diagnostics by running the command line Unix ssh program in verbose mode. For example: You can get diagnostics by running the command line Unix ssh program in verbose mode. For example:
  
-    $ ssh -v user@classes.cs.uchicago.edu+    $ ssh -v user@linux.cs.uchicago.edu
     OpenSSH_4.7p1 Debian-12, OpenSSL 0.9.8k 25 Mar 2009     OpenSSH_4.7p1 Debian-12, OpenSSL 0.9.8k 25 Mar 2009
     debug1: Reading configuration data /etc/ssh/ssh_config     debug1: Reading configuration data /etc/ssh/ssh_config
     debug1: Applying options for *     debug1: Applying options for *
-    debug1: Connecting to classes.cs.uchicago.edu [128.135.11.76] port 22.+    debug1: Connecting to linux.cs.uchicago.edu [128.135.11.76] port 22.
     debug1: Connection established.     debug1: Connection established.
     ...more diagnostic info omitted...     ...more diagnostic info omitted...
Line 50: Line 69:
  
 ===== Advanced Usage ====== ===== Advanced Usage ======
-==== SSH Tunneling ==== 
  
-SSH Tunneling allows you to connect to internal CS servers, such as mysql (dbserver.cs.uchicago.edu), from outside our network. See our general documentation or task specific instructions: 
- 
-    Tunnel to mysql on dbserver from a Windows XP machine 
-    Tunnel to mysql on dbserver from a Linux or OS-X machine 
  
 ==== Passwordless Authentication ==== ==== Passwordless Authentication ====
Line 74: Line 88:
  
 However, if you do this, you have recreated the original problem you were trying to solve! You have just replaced typing an account password with typing a key passphrase every time you wish to authenticate. There is a solution though, that will make everyone happy, using programs called ssh-agent and keychain. Using them is the subject of the next section. However, if you do this, you have recreated the original problem you were trying to solve! You have just replaced typing an account password with typing a key passphrase every time you wish to authenticate. There is a solution though, that will make everyone happy, using programs called ssh-agent and keychain. Using them is the subject of the next section.
-Passphrase-protected SSH Keys using ssh-agent and keychain+ 
 +==== Passphrase-protected SSH Keys using ssh-agent and keychain ====
  
 ssh-agent is a program that runs in the background and keeps a decrypted copy of your private key in memory. Thus, you reduce the number of times you need to type in your passphrase from once per authentication event, to once every time the machine gets rebooted. ssh-agent is a program that runs in the background and keeps a decrypted copy of your private key in memory. Thus, you reduce the number of times you need to type in your passphrase from once per authentication event, to once every time the machine gets rebooted.
/var/lib/dokuwiki/data/pages/techstaff/remote_access.txt · Last modified: 2019/04/24 13:41 by kauffman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki