Remote Access

The CS department is providing a few different ways to remotely use department resources.

The CS department recommends students use the Linux VM if possible. This virtual machine image is configured with all the necessary software that is used on the open lab machines. Some of the software we have, such as VMWare and the JetBrains software suite, is proprietary software that we can only legally install on BYU-owned computers. However, this machine image does include a number of useful development tools, such as Android Studio, GCC, Java, Python, Eclipse, and Atom. This VM is designed to run on your personal computer in Oracle VirtualBox.

The Linux Virtual Machine by default will not give you access to your CS account home directory. If you need access to files contained in your CS account please consult the “Accessing network files” section in the VM documentation, or use the SSH option below.

Starting Fall Semester 2023, Schizo will be unavailable. The name Schizo will simply be an alias for please see the following section, SSH into Moat, for instructions

If you are unfamiliar with SSH then please follow this link for more information.

SSH is a valuable tool which allows users to connect to a terminal on a remote computer. Schizo allows students to access one of our open lab machines via SSH. This allows you to access all files contained in your CS account home directory and run commands, including pass-off scripts. To use this tool you will need your CS account credentials.

For example, if your CS account username was johnsmith, you would use the following command to ssh into the terminal:

Make sure you replace johnsmith with your CS account username, or SSH will not work. Also if you do not use add the you will not be able to connect

You should then enter your CS account password. You will then have access to the Lab machine resources.

In the terminal, the prompt typically starts with [username]@[host]. For example, in the screenshot above, it shows that the user johnsmith is on the machine called florida. This will tell you whether you're currently running commands on your own machine or on a CS lab machine.

When using scp or an IDE to access moat remotely, no DUO message will be printed but you will still get a DUO push.

This tutorial explains a FIRST TIME login to moat.

1. SSH into moat

username@yourmachine:~$ ssh

2. Enter password, and copy the link that appears (if one appears). If no link appears and you are prompted to dual authenticate you are already enrolled in Duo. If this is the case, skip to step #8

username@yourmachine:~$ ssh
Please enroll at https://<<Duo url>>
Connection to closed.

3. Follow the given link and complete prompts until Duo asks you to choose an authentication method. You will be presented with two choices: Duo Mobile and a hardware token. CHOOSE DUO MOBILE.

4. This should take you to a screen that asks you for a phone. Instead of entering a phone number, choose the “I HAVE A TABLET” option.

5. Download the Duo Mobile app if you do not already have it.

6. Scan the QR code and complete the prompts, skipping when it asks if you would like to add another authentication option.

7. SSH into moat:

username@yourmachine:~$ ssh

8. Enter your password if prompted, and complete dual authentication by typing the number associated with the Duo push option and pressing enter.

9. During your first login you may be prompted to accept an ssh key from moat. Answer YES to this prompt:

The authenticity of host [moat-proxy] can't be established.
ECDSA key fingerprint is SHA256:kkMN****.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

You should now have remote access to a lab machine!

To set up ssh keys for moat and lab machines, follow this link

Possible Issues

If your enrollment link expires, you could be locked out of your new DUO account. If this occurs, when you attempt to log in, the connection will close with no error message. DUO is managed at the administrative level by OIT. To solve this issue, submit a ticket to OIT asking them to send you a DUO reactivation link for the username you are trying to set up with DUO.

The CS Department VPN is ONLY for Computer Science students or students working for professors in the CS Department. If you are not a CS student, please contact your own department or BYU OIT for general VPN access.

The CS department VPN server allows you to remotely connect to the CS network, which allows you to access network resources that are only available inside the network. Most resources that students need are available from off the network, but if you do need internal-only resources from off-campus, you'll need to use the VPN.

We have a limited number of OpenVPN licenses; because of this we can only have a limited number of people connect to the department through the VPN. Take careful note of the following points:

  • If the VM or SSH are sufficient for your needs, please use those instead (see previous sections).
  • If you need to use the VPN, make sure you disconnect once you're done so a new user can use that license.
  • If you find yourself having problems with the VPN, we may be at capacity and unable to serve more users until existing users disconnect. Try to make do with the other options until a license is released.
Please take note of the following information regarding pass-off scripts.

Some classes require you to pass off labs with a script provided by the professor or TA's. For grading purposes, the TA's typically run the scripts on the open lab machines. These scripts may behave differently on other machines.

The VM described in the following section will have an almost exactly identical software setup to the open lab machines. However, there may be small discrepancies between the versions of the packages running on the two. Most of the time these differences will not affect the scripts, but if there are any discrepancies between the two, how it runs on the open lab machines will take priority.

For these classes, the VM will be useful for developing most of your code, but you may also want to test it on the open lab machines by using SSH.

  • remote-access-home.txt
  • Last modified: 2023/09/05 11:22
  • by noblet