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
labs:remote_access [2022/01/10 19:21] – [Making a Connection] adminlabs:remote_access [2024/01/16 03:16] (current) – [Using ssh on the Lab Machines] admin
Line 1: Line 1:
 ====== Remote Access ====== ====== Remote Access ======
  
-You can log into your Linux account remotely, if you have ''ssh'' on your computer. +You can log into the Computer Science lab machines remotely, if you have ''ssh'' on your computer. 
 [[http://en.wikipedia.org/wiki/Secure_Shell|SSH]] (**s**ecure **sh**ell) is a network protocol that allows you to remotely connect to other computers run your programs from there. [[http://en.wikipedia.org/wiki/Secure_Shell|SSH]] (**s**ecure **sh**ell) is a network protocol that allows you to remotely connect to other computers run your programs from there.
  
 If you want to run graphical applications on the Linux machines but interact with them on your computer (you probably do!), you'll need to run an X server and set up X forwarding. If you want to run graphical applications on the Linux machines but interact with them on your computer (you probably do!), you'll need to run an X server and set up X forwarding.
  
 +===== From Off Campus =====
 +
 +Follow the instructions in "Remote Access" in [[https://wlu.box.com/v/ComputerScienceLabs|The Computer Science Lab Documentation]] to connect to the lab machines from off campus.
  
 ===== From Mac ===== ===== From Mac =====
Line 17: Line 20:
    
   - Start XQuartz before making an SSH connection.  Then, you can use X forwarding with ssh from the built-in Terminal application or from XQuartz's ''xterm'' application.   - Start XQuartz before making an SSH connection.  Then, you can use X forwarding with ssh from the built-in Terminal application or from XQuartz's ''xterm'' application.
-  - In a terminal (Terminal or xterm), type the command \\ ''ssh -XY yourusername@python.ad.wlu.edu'' Alternatively, ''ssh -XY yourusername@python'' should also work. +  - In a terminal (Terminal or xterm), type the command \\ ''ssh -XY yourusername@python.cs.wlu.edu''  
-      * where     ''yourusername'' is the username of your Computer Science account.  +      * where     ''yourusername'' is the username of your account.  
       * The ''-XY'' will allow you to see a graphical program's windows on your local machine.  Note that using a GUI application remotely can be slow.  You definitely don't want to try to run an application like Eclipse remotely.       * The ''-XY'' will allow you to see a graphical program's windows on your local machine.  Note that using a GUI application remotely can be slow.  You definitely don't want to try to run an application like Eclipse remotely.
       * Answer "yes" to questions about trusting the machine and storing the key.       * Answer "yes" to questions about trusting the machine and storing the key.
       * **Your password will not be displayed.** Keep typing!  Hit enter.        * **Your password will not be displayed.** Keep typing!  Hit enter. 
 +      * It can take longer than you'd expect to get a prompt back, but hang in there.
       * You may get an error message about a .Xauthority file that you can safely ignore.       * You may get an error message about a .Xauthority file that you can safely ignore.
-  - Try typing ''idle3 &'' and hitting enter to see if a Python IDE GUI pops up.  Note that this can be slow depending on your network connection, especially the first time.  If the IDE pops up, it worked!  You can quit (close) the GUI (but not the terminal). +  - Try typing ''idle &'' and hitting enter to see if a Python IDE GUI pops up.  Note that this can be slow depending on your network connection, especially the first time.  If the IDE pops up, it worked!  You can quit (close) the GUI (but not the terminal). 
-  - Now, [[#using_ssh_on_the_lab_machines|ssh to a lab machine (See: Using ssh on the Lab Machines)]], so that you can actually run the software that is installed on the lab machines.  See [[#machine_names|Machine Names]] for more information about the available machines.+  - Now, [[#using_ssh_on_the_lab_machines|ssh to a lab machine (See: Using ssh on the Lab Machines)]], so that everyone isn'on the same machine.  See [[#machine_names|Machine Names]] for more information about the available machines.
  
 If you have trouble using X forwarding, you may need to edit your ssh_config file (typically found at ''/etc/ssh/ssh_config'' or ''~/.ssh/config'') . If ssh_config includes ''#X11Forwarding no'' (or just ''X11Forwarding no''), uncomment the line by removing the leading ''#'' and change it to ''X11Forwarding yes''. If you have trouble using X forwarding, you may need to edit your ssh_config file (typically found at ''/etc/ssh/ssh_config'' or ''~/.ssh/config'') . If ssh_config includes ''#X11Forwarding no'' (or just ''X11Forwarding no''), uncomment the line by removing the leading ''#'' and change it to ''X11Forwarding yes''.
Line 31: Line 35:
 ==== Requirements ==== ==== Requirements ====
  
-Install [[http://www.chiark.greenend.org.uk/~sgtatham/putty/|PuTTY]] is an old school, free ssh client.+Install [[http://www.chiark.greenend.org.uk/~sgtatham/putty/|PuTTY]]an old school, free ssh client.
  
 Download and install [[https://sourceforge.net/projects/xming/|Xming]]. [[http://www.straightrunning.com/XmingNotes/|Xming]] is a free X window server for Microsoft Windows. Start Xming before connecting to the remote system with your SSH client (for example, PuTTY). Download and install [[https://sourceforge.net/projects/xming/|Xming]]. [[http://www.straightrunning.com/XmingNotes/|Xming]] is a free X window server for Microsoft Windows. Start Xming before connecting to the remote system with your SSH client (for example, PuTTY).
Line 40: Line 44:
     - When I ran Xming, it didn't seem like anything happened, but if you click "Show Hidden Icons", you should see the "X" for Xming     - When I ran Xming, it didn't seem like anything happened, but if you click "Show Hidden Icons", you should see the "X" for Xming
   - Run and configure PuTTY:   - Run and configure PuTTY:
-    - Enter ''fred.cs.wlu.edu'' under 'Host Name' and under 'Saved Sessions'.  +    - Enter ''python.cs.wlu.edu'' under 'Host Name' and under 'Saved Sessions'.  
     - Enable X11: Click on the 'plus' of the Connection category (if it's not already expanded), then the plus of the SSH category, then select X11.  Check 'Enable X11 forwarding'.     - Enable X11: Click on the 'plus' of the Connection category (if it's not already expanded), then the plus of the SSH category, then select X11.  Check 'Enable X11 forwarding'.
     - Select the 'Session' category, and click on 'Save'     - Select the 'Session' category, and click on 'Save'
-  - Click Open to connect to fred.cs.wlu.edu+  - Click Open to connect to python.cs.wlu.edu
     - Agree to any questions about trusting the host and accepting the security key.     - Agree to any questions about trusting the host and accepting the security key.
-  - Enter your username and password for the CS department machines. **Your password will not be displayed.** Keep typing!  Hit enter. +  - Enter your username and password for your W&L account. **Your password will not be displayed.** Keep typing!  Hit enter. 
   - Try typing in ''idle3 &'' and then enter to see if a Python GUI IDE pops up.  Note that this can be slow depending on your network connection, especially the first time.   If the IDE pops up, it worked!  You can quit (close) the GUI (but not the ssh client, e.g., PuTTY).   - Try typing in ''idle3 &'' and then enter to see if a Python GUI IDE pops up.  Note that this can be slow depending on your network connection, especially the first time.   If the IDE pops up, it worked!  You can quit (close) the GUI (but not the ssh client, e.g., PuTTY).
-  - Now, [[#using_ssh_on_the_lab_machines|ssh to a lab machine (See: Using ssh on the Lab Machines)]], so that you can actually run the software that is installed on the lab machines.  See [[#machine_names|Machine Names]] for more information about the available machines.+  - Now, [[#using_ssh_on_the_lab_machines|ssh to a lab machine (See: Using ssh on the Lab Machines)]], so that not everyone is on the same machine.  See [[#machine_names|Machine Names]] for more information about the available machines.
  
  
Line 71: Line 75:
   * Enter your CS department password when prompted   * Enter your CS department password when prompted
   * You are now on the Linux machine, and you can use it just like if you were on the machine in lab.    * You are now on the Linux machine, and you can use it just like if you were on the machine in lab. 
 +
 +===== From Linux =====
 +
 +You should have ssh and an X server already.  You don't need to install anything.
  
 ===== Using ssh on the Lab Machines ===== ===== Using ssh on the Lab Machines =====
  
-After logging into a "gateway" machine, you should "hop" to one of the lab machines, using [[http://cswiki.wlu.edu/dokuwiki/doku.php/labs/remote_login#ssh_from_lab_machines|ssh]].  See [[#machine_names|Machine Names]] for more information about the available machines.+From one lab machine, you can "hop" to one of the other lab machines, using [[http://cswiki.wlu.edu/dokuwiki/doku.php/labs/remote_login#ssh_from_lab_machines|ssh]].  See [[#machine_names|Machine Names]] for more information about the available machines.
  
 If you're already on a lab machine, you can ssh to another machine, by typing If you're already on a lab machine, you can ssh to another machine, by typing
Line 81: Line 89:
  
 The ''-XY'' allows your machine to display GUIs executing on another machine. The ''-XY'' allows your machine to display GUIs executing on another machine.
 +
 +If this is your first time logging in to a particular machine, you'll be prompted to confirm that you want to connect to the machine.  Type "yes" and hit enter.
 +
 +Enter your password.  For security reasons, you won't see any keystrokes being pressed.  Just enter your password and hit enter.
  
 After you're on a machine in the lab, if you're doing something computationally intensive, you should check if someone else is on the machine using the command ''who'' If you see other people (besides you) using the machine, exit out of this machine and ssh to another machine instead. After you're on a machine in the lab, if you're doing something computationally intensive, you should check if someone else is on the machine using the command ''who'' If you see other people (besides you) using the machine, exit out of this machine and ssh to another machine instead.
  
-===== From Linux ===== 
  
-You should have ssh and an X server already.  You don't need to install anything. 
 ===== Machine Names ===== ===== Machine Names =====
  
Line 93: Line 103:
 A list of the machine names is in this [[https://wlu.box.com/v/CSCILabMachines|WLU-authorization-required document]]. A list of the machine names is in this [[https://wlu.box.com/v/CSCILabMachines|WLU-authorization-required document]].
  
-If you are off-campus, you need to start with ''fred''. 
  
  
labs/remote_access.1641842478.txt.gz · Last modified: 2022/01/10 19:21 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0