Skip to main content
Apply

Arts and Sciences

Open Main MenuClose Main Menu
Department of Computer Science

CSX Server Logging On

This page provides a quick step by step walkthrough of getting logged into your CSX server account for the first time. Following through with your own information is highly recommended. At the end of the session, you should be able to log into your account from both on and off campus, as well as transfer files and use the handin program. Suggestions for further elements are always welcome.


  • Finding your Username

    ✓ Find and write down your username

     

    1. If you haven't already activated your O-Key account, you need to do so before proceeding further. O-Key is the central authentication service operated by OSU's IT department and will be used in this session to identify yourself to the CS password reset application.

      1. The same short usernames provided by O-Key are used on the Computer Science servers (CSX), so you won't need to remember a separate account name. However, it's important to understand the difference between the long and short account names.

    2. Log into your O-Key account and review your Personal Profile.

    3. Look under your name for an entry called "O-Key Account Username:" This is a short series of characters that you'll use to log in. It is usually formed from parts of your name to make it easier to remember.

    4. Be aware that this short username is not the same as the "O-Key Login Address" further down the page, which is an email address containing your full name.

    5. The short username should be no longer than 7 characters and does not include @okstate.edu or any other domain extension.

  • Setting your Password

    ✓ How to setup/reset your CSX password

     

    • When your CSX account was created, the password was initially set to something long, random, and unknown to anyone. This ensures that unused accounts are not a security risk. However, this password isn't useful for accessing your account, and no one can unencrypt it to find out what it is.

    • You will need to reset your password before using your account. This procedure can also be used any time you forget your password.

     

    What you will need:

    → Your short username from the previous step

    → Your O-Key password

     

    1. Open the Password Reset page in any web browser (please avoid old versions of Internet Explorer).

      1. You should see something that looks like this:password reset page

    2. Type your short username from the previous step into the input field and click the Check UID button. This should expand the form to show a new field and button.

    3. Next, enter your O-Key password and click the Check Password button. You can also press the ENTER key instead of clicking the buttons.

    4. If you entered your password correctly, a grey box will appear, reminding you of what will happen after clicking the final button. Be sure to read this text, especially the first time you do this. At this point, the page should look similar to this:password reset page

    5. When you're ready, click the Reset My CSX Password button. You will receive a randomly generated password.

    6. If you don't want to use the generated password in the long-term, you can change it after logging into a CSX server.

     

    What if my username isn't recognized?

    If you were enrolled in a Computer Science course only recently, your account may not have been created yet. Try again tomorrow! If a few days pass and it still hasn’t been created, contact the technical staff using the Support Request Form for assistance.

  • Using the VPN

    ✓ How to install Cisco AnyConnect (if needed)

    ✓ How to connect to the campus VPN (if needed)

     

    If you're only going to access the servers from the Stillwater campus, you can probably ignore this step entirely. But if you're ever going to connect from somewhere else, you'll need to use the university's Virtual Private Network. A VPN effectively makes your device part of the campus network, and thus able to "see" campus systems and not be blocked by firewalls that otherwise prevent unwanted visitors.

     

    Logging into the CSX servers might require OSU's VPN in order to access them while connected to MyResNet Wi-Fi.

     

    Installing OSU's VPN

    Microsoft Windows, Apple Mac OS X/OS, and Linux

    1. In Firefox or Chrome visit the OSU VPN (osuvpn.okstate.edu). Internet Explorer and Edge are not recommended.

    2. Enter your O-Key Login Address and Password into the appropriate text boxes of the login portal.

    3. Select the Login button.

    4. Choose the Download button from the Download & Install page. The software download should process automatically.

    5. Locate and open the AnyConnect file in your computer’s downloads folder.

    6. Select the Next button from the Setup Wizard.

    7. Accept the End-User License agreement by choosing the I accept radio button.

    8. Select the Next button from the same window.

    9. Choose the Install button from the Ready to Install window.

    10. Select the Yes button from the User Account Control window.

    11. Choose the Finish Setup Wizard button to complete the setup.  Please see the Connecting to OSU's VPN section below for information on connecting to the OSU VPN.

    Apple iPhone and iPad

    1. Access the App Store icon from the display screen.

    2. You will need to login using your App Store/iCloud credentials.

    3. Search for Cisco AnyConnect.

    4. For Apple iOS 10.0 or higher, select the Get located next to the Cisco AnyConnect heading. For Apple iOS lower than 10.0, select the Get located next to the Cisco Legacy AnyConnect heading.

    5. Choose Install, which should replace Get.

    6. A turning circle should replace Install.

    7. Select Open, which should replace the turning circle when installation is complete.

    8. Either an AnyConnect or Legacy AnyConnect shortcut will appear on your device display screen.

    Google Android

    1. Install Cisco AnyConnect from the Google Play Store.

    2. Choose Accept when asked for access to device information.

    3. An AnyConnect shortcut will appear to your device display screen.

    Connecting to OSU's VPN

    Microsoft Windows, Apple Mac OS X/OS, and Linux

    1. Launch the Cisco AnyConnect program. In Windows click the Search button in the bottom left corner of the screen, and search for “Cisco AnyConnect”.
      vpn

      vpn

    2. Type “osuvpn.okstate.edu” in the field, and click “Connect”.
      vpn

    3. Enter your O-Key credentials and click “OK.”
      vpn

  • Logging into a CSX Server

    ✓  How to login into the CSX server

     

    All command-line logins to CSX must use the SSH protocol. Before April 2018, or on versions of Windows earlier than Windows 10, users needed third-party software like PuTTY. While you can still use PuTTY or similar programs, they are no longer covered here for simplicity.

     

    1. Open a Command Line:

      • On a Mac, open the Terminal app.
      • On Windows 10, open either cmd or PowerShell.
    2. Enter the SSH Command:

      • Type the following, replacing "myusername" with your own username: ssh myusername@csx2.cs.okstate.edu
    3. Enter Your Password:

      • When prompted, enter the CSX password you set earlier (not your OKEY password).
      • For security, nothing will appear as you type. Press Enter when done. Your password will be accepted if it’s correct.
      • Example;Password Example in Linux
    4. Understanding Hostnames:

      1. The CSX system includes several servers you can log into. You can choose any of these, and they function similarly.
      2. Hosts starting with "csg" have added GPUs for GPU computing.
      3. The hosts are named as follows:
        csx0.cs.okstate.edu
        csx1.cs.okstate.edu
        csx2.cs.okstate.edu
        csx3.cs.okstate.edu
        csx4.cs.okstate.edu
        csg1.cs.okstate.edu
        csg2.cs.okstate.edu
  • Uploading Files: An Example

    How to upload files to CSX

     

    Upload using SSH:

    Just as SSH is required for logging into CSX machines, an SSH-based transfer protocol is required for uploading and downloading files. Generally there are two such protocols in use: SCP and SFTP. It really doesn't matter which you use, and there are many GUI clients for multiple platforms that support one or both. As before, Mac, Linux and Windows 10 since April 2018 have the command line tools scp and sftp, and so uploading files can be as simple as:

    scp myfile.txt russ@csx3.cs.okstate.edu:.

     

    The username "russ", filename "myfile.txt" and hostname "csx3.cs.okstate.edu" above are just examples. You could even use the -r option to recursively copy a directory; generally scp works much like the normal UNIX cp command.

     

    Upload using WinSCP (Windows Only):

    WinSCP is an application for Windows that can use the SCP protocol, amongst others, and is free.

    Here is an example of using the WinSCP application to upload files.

    winscp

    Creating a new site configuration. SFTP protocol has some advantages.
     

    Once you're connected using WinSCP, it's just drag and drop to transfer files.

  • Turning In Homework with handin

    Learn how to turn in homework with handin (if required)

     

    While many CS classes use Canvas now, some still ask students to use handin, a venerable command line tool that the department has made available for over 25 years. It may seem a little unobvious at first glance, but it's actually pretty straightforward from the student end. First, a few things you'll need to have before running handin:

    1. The files you wish to hand in already uploaded to CSX (see previous section for help)
    2. The name of the class account (for example, cs1113)
    3. The name of the assignment directory (for example, pgm1)

     

    Here are a few examples of running handin using the above example names (note that these commands must be run on a CSX node):

    handin
    Gives a very brief usage line
    handin cs1113
    Lists all of the available assignment directories for a class account
    handin cs1113 pgm1
    Lists all files you have already submitted in this directory
    handin cs1113 pgm1 myfile.txt
    Submits the file and emails you a confirmation
    What if I get an error? Check to make sure you've provided all the information correctly. If the problem persists and you're sure you've got your command line correct, notify your TA or professor that there's a problem.

     

    You can list multiple filenames when submitting rather than have to run handin once for each file. As with many Linux commands, you can run man handin to see a description of the program.

MENUCLOSE