Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
student:cs149startup:start [2021/08/23 09:00] – [Code Editor] stewarmcstudent:cs149startup:start [2021/11/03 22:16] (current) – [Using the shell to access Autolab] added missing -L mayfiecs
Line 31: Line 31:
 Direct access to Autolab is blocked from off campus for security reasons. In order to access Autolab from off campus you must either [[student:vpn:start|install and run the VPN]] or you must create an SSH tunnel through the shell. This sounds really complicated and fancy, but is actually fairly straightforward. To do this simply run the following command in your shell but make sure to replace "your-username" with your actual username:  Direct access to Autolab is blocked from off campus for security reasons. In order to access Autolab from off campus you must either [[student:vpn:start|install and run the VPN]] or you must create an SSH tunnel through the shell. This sounds really complicated and fancy, but is actually fairly straightforward. To do this simply run the following command in your shell but make sure to replace "your-username" with your actual username: 
  
-''ssh 4443:autolab.cs.jmu.edu:443 your-username@stu.cs.jmu.edu''+''ssh -L 4443:autolab.cs.jmu.edu:443 your-username@stu.cs.jmu.edu''
  
 Then log in using your EID password. This establishes what is called an SSH tunnel that routes traffic through your computer to our Autolab server through a connection to stu.cs.jmu.edu, which is the student server for computer science students.  Then log in using your EID password. This establishes what is called an SSH tunnel that routes traffic through your computer to our Autolab server through a connection to stu.cs.jmu.edu, which is the student server for computer science students. 
  
 Once you have done this, you can access Autolab by visiting [[https://localhost:4443/|https://localhost:4443/]] in a browser. Your browser will give you security warnings about this, because it will recognize that you are trying to connect to cs.autolab.jmu.edu but have in fact connected to localhost. In this case, this is ok, since localhost is just the name of your own computer and you are using the SSH tunnel you yourself have set up.  Once you have done this, you can access Autolab by visiting [[https://localhost:4443/|https://localhost:4443/]] in a browser. Your browser will give you security warnings about this, because it will recognize that you are trying to connect to cs.autolab.jmu.edu but have in fact connected to localhost. In this case, this is ok, since localhost is just the name of your own computer and you are using the SSH tunnel you yourself have set up.