DataScience Workbook / 06. High-Performance Computing (HPC) / 2. Remote Access to HPC Resources / 2.2 Secure Shell Connection (SSH)
Introduction
What is ssh?
- SSH is short for Secure SHell
ssh (SSH client) is a program for logging into a remote machine and for
executing commands on a remote machine. It is intended to provide secure
encrypted communications between two untrusted hosts over an insecure
network. X11 connections, arbitrary TCP ports and UNIX-domain sockets
can also be forwarded over the secure channel.
On a Mac (OS)
- Use the Finder
and search for and open the Terminal program
.
- Type
ssh username@hostname
- Example1:
ssh andrew.severin@login.scinet.science
- Example2:
ssh severin@bridges.psc.edu
- Example1:
- Hit by ↵ (
Enter
) key and enter your password and verification code.- Note: as you type the password, you will not see your typing.
On a PC (Windows)
On Windows, it will be easier for you to login first to a linux based system for the rest of this tutorial (remote machine). You will first need to open up the command prompt which is similar to a terminal in the Mac OS operating system.
- Press windows key + r, type cmd and enter
- Type ssh usename@hostname
- Example1:
ssh andrew.severin@login.scinet.science
- Example2:
ssh severin@bridges.psc.edu
- Hit by ↵ (
Enter
) key and enter your password and verification code.- Note: as you type the password, you will not see your typing.
- Example1:
- Search for
cmd
using Window’s search.
Note: The window can be resized with the mouse and the font text can be increased by pressing cmd +
or control +
on Mac or Windows, respectively.
Further Reading
- 2.3 Open On Demand (OOD) Connection
-
learn more about Remote Data Access in section 7: Data Acquisition
- 3. Setting up Your Home Directory for Data Analysis
- 4. Software Available on HPC
- 5. Introduction to Job Scheduling
- 6. Introduction to GNU Parallel
- 7. Introduction to Containers