Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Overview

Objective of this tutorial is to describe and demonstrate the various methods for logging into an HPC system from a computer running the Windows Operating System (OS). This one covers the use of the native Command Prompt to use ssh. By the end of this tutorial you will know how to login to our HPC system using the Windows Command Prompt on Windows.

Introduction

When a user first gets an account to our HPC services they receive an automatically generated email from arcc-admin@uwyo.edu that includes a line similar to this:

“You will access the cluster via SSH using the command syntax ‘ssh arcc-t01@teton.arcc.uwyo.edu’ from a Linux/Unix/MacOS system.”

But if you keep reading you will also see:

“From a Windows system you will need to download and install an SSH client, such as "PuTTY", "MobaXterm" or "Bitvise SSH". You can find the installers by doing a Google search on the package name.”

Secure Shell (ssh) is a standard tool included on most "network" operating systems i.e. Linux, UNIX, MacOS, etc.. In the past Windows required a 3rd party application to get even a usable ssh client, but is still a valid method for logging into remote Linux systems. For users who needed to connect securely to the rest of the world with a command line interface PuTTY has been a common addition. However, there are many ssh clients available besides PuTTY that often have more tools preinstalled out of the box.

Additionally, after several decades Microsoft finally has a native ssh client AND server on Windows! The client is standard (and is stable) on Windows 10 since 2018 with the 1809 "October Update". If you are using an older version of Windows you will still need to use a ssh client. See our Tutorial on using MobaXTerm to login to an HPC system.

Using The Command Prompt to Login

Search for Using the Windows Command Prompt

Since ssh is now available on the newest versions of Windows, we can login in a very similar method as you would on a Linux or Mac computer. The main difference is that Windows uses the term ‘Command Prompt’ instead of 'Terminal'. Here are the steps to using ssh with the Windows Command Prompt:

Search for the Command Prompt in the Windows search bar.

You can type the letters ‘cmd’ or ‘Command Prompt’ to find the application.

About the Windows Command Prompt and using the ssh command

There are several different parts of the ssh command but it can be broke down into username, the '@' symbol, and servername. For example, when I first open the Command Prompt on a Windows computer I see:

Microsoft Windows [Version xx.x.xxxxx.xxx]
(c) Microsoft Corporation. All rights reserved.

C:\Users\johndoe

Where the first part of the Command Prompt shows what version of Windows my computer and then what folder I am in, in this case I am in my home directory C:\Users\johndoe under the 'C' drive.

From here we can now type in our ssh command from the email:

Where this is saying that I want to ssh as the user arcc-t01 onto the server @teton.arcc.uwyo.edu. If we then hit ‘enter’ on the first time trying to connect we will get message saying the ‘authenticity of the host … can’t be established' and then asks if we ‘are sure we want to continue?’

There are some sensitive information was blocked out in the above image. If yours doesn’t look the exactly same, it is normal.

If we then type ‘yes’ we get taken to a pre-authentication window in our terminal where it says ‘this system requires two-factor authentication’ and that we will need to enter our password and second factor token to login.

If you are unsure how to do this, please see our Tutorial on Using Two-Factor Authentication. After we enter our password and 2FA, we are logged into the system successfully and our prompt in our terminal changes to what we used in our ssh command.

You won’t see any dots in the terminal window as you type your password. This is normal, please hit ‘enter’ after you finish typing your password & 2FA.

Where arcc-t01 is our username and @tlog1 is the server we logged into. ‘tlog1’ is specifically one of the login nodes on the cluster host teton.arcc.uwyo.edu.

[arcc-t01@tlog1 ~]$

Now you can use the the HPC system the way you expect provided this works with your intended workflow.

Graphical Applications

With Windows you may have to install another application called Xming before you can run graphical applications over ssh on the Command Prompt. You may want to use a ssh client like MobaXTerm instead of the command prompt if this is the case, or the FastX Client.


Summary

In this tutorial we learned:

  • That Windows now has native support for ssh in the Command Prompt

  • How to find & open the Command Prompt

  • use the ssh command to login to an HPC system


Next Steps

If you find that the Command Prompt isn’t for you, Windows also has the option to run the Windows Subsytem for Linux (WSL), or there are always ssh clients like MobaXTerm that you may find more useful.


  • No labels