You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -11,9 +11,84 @@ If you'd prefer to access the HPC cluster via a web gateway instead, please refe
11
11
12
12
The following sections will outline basic ways to connect to the Greene cluster. Access to the clusters is primarily handled via the Secure Shell Protocol, or ssh. Below we outline ways to connect via ssh on Mac, Linux, and Windows machines.
13
13
14
-
:::info Connecting to Torch from outside NYU Network
14
+
## Quick Start HPC Connection Guide
15
+
### Configuring Your SSH Client
16
+
To connect to HPC systems, it's important to configure your machine's SSH client. For Linux and Mac machines, the configuration file is the ~/.ssh/config file on your computer. These are the basic lines that should be added to your ~/.ssh/config file:
For Windows, you can now follow a similar configuration setup. Using Powershell you can use the following to create and open a Windows SSH config file:
44
+
```sh
45
+
# Create the config file with Powershell
46
+
New-Item -Path $HOME\.ssh\config -ItemType File
47
+
48
+
# Open config File with Notepad
49
+
C:\WINDOWS\System32\notepad.exe $HOME\.ssh\config
50
+
```
51
+
Configuring the file above will allow you to use the cmd terminal to connect to Greene.
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
63
+
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
64
+
It is also possible that a host key has just been changed.
65
+
```
66
+
67
+
:::
68
+
69
+
Do not be alarmed - this is an issue that occurs because the cluster has multiple login nodes (`log-1`, `log-2`, and `log-3`) that `greene.hpc.nyu.edu` resolves to.
15
70
71
+
To avoid this warning, you can add these lines to your SSH configuration file. Open `~/.ssh/config` and place the following lines in it:
16
72
73
+
:::tip
74
+
This segment, referenced in the recommended config above will nullify the error:
The above will also fix SSH timeout errors by extending the `ServerAliveInterval` argument.
86
+
:::
87
+
88
+
### Connecting to the NYU Network
89
+
To access the HPC systems, you must either be on the NYU secure network (such as the NYU WiFi or a wired connection from an NYU office) or use a method of accessing it, such as the NYU VPN or the HPC Gateway servers.
90
+
91
+
:::info Connecting to the HPC clusters from outside NYU Network
17
92
<Tabs>
18
93
<TabItemvalue="VPN"label="VPN (Preferred)">
19
94
[Set up your computer to use the NYU VPN][nyu vpn link]. Once you've created a VPN connection, you can proceed as if you were connected to the NYU net
@@ -24,28 +99,40 @@ The following sections will outline basic ways to connect to the Greene cluster.
24
99
</Tabs>
25
100
:::
26
101
27
-
You do not need to use the NYU VPN or gateways if you are connected to the NYU network (wired connection in your office or WiFi) or if you have VPN connection initiated. In this case you can ssh directly to the clusters.
28
-
29
102
## Command Line Interface (with a Terminal)
30
103
31
104
### Mac & Linux Access
32
105
33
-
To connect to the gateway servers, simply open a [terminal application][apple terminal link] and enter the following command:
106
+
#### VPN Connection
107
+
If you're on the VPN or the main NYU network on campus you can SSH directly to greene like so:
34
108
35
109
```sh
36
-
ssh <NetID>@gw.hpc.nyu.edu
110
+
ssh <Your NetID>@greene.hpc.nyu.edu
37
111
```
112
+
113
+
#### Gateway / SSH Tunneling Option
114
+
115
+
To connect to the gateway servers, after you've configured your ~/.ssh/config file, simply open a [terminal application][apple terminal link] and follow these steps:
38
116
39
-
After typing in your password you will be logged in to the cluster. Once this connection is established, you can make one more hop and connect to one of the HPC clusters:
117
+
1. Open a terminal
118
+
2. Connect to the gateway via the ssh command:
119
+
```sh
120
+
ssh hpcgwtunnel
121
+
```
122
+
3. Authenticate with your password and Duo MFA
40
123
124
+
4. Open a second terminal
125
+
5. Connect to the Greene login nodes via the ssh command:
41
126
```sh
42
-
# this will connect you to Greene HPC cluster
43
-
ssh <NetID>@greene.hpc.nyu.edu
127
+
ssh greene
44
128
```
129
+
6. Authenticate
130
+
131
+
After typing in your password you will be logged in to the cluster.
45
132
46
133
### Windows CMD
47
134
48
-
Windows 11 users have several options. First, the CMD program should contain an ssh client, allowing you to log into Greene or Hudson the same way as with a Linux terminal.
135
+
Windows 11 users have several options. First, the CMD program should contain an ssh client, allowing you to log into the HPC systems the same way as with a Linux terminal.
49
136
50
137
### Windows WSL2
51
138
@@ -58,7 +145,9 @@ Instructions on WSL installation can be found here: [https://docs.microsoft.com/
58
145
- If you are using WSL 2 (Windows subsystem for Linux), you may not be able to access internet when Cisco AnyConnect VPN, installed from exe file, is activated. A potential solution: uninstall Cisco AnyConnect and install AnyConnect using Microsoft Store, and then setup new VPN connection using settings described on [IT webpage][install vpn on windows link].
59
146
:::
60
147
61
-
## Setting up SSH Keys
148
+
## Additional Tips
149
+
Below are some additional options and tips for connecting to the HPC resources.
150
+
### Setting up SSH Keys
62
151
63
152
Instead of typing your password every time you need to log in, you can also specify an ssh key.
64
153
@@ -73,9 +162,9 @@ Instead of typing your password every time you need to log in, you can also spec
73
162
74
163
- Next time you will log into cluster no password will be required
75
164
76
-
For additional recommendations on how to configure your SSH sessions, see the \[ssh configuring and x11 forwarding page].
165
+
For additional recommendations on how to configure your SSH sessions, see the [ssh configuring and x11 forwarding page](./02_ssh_tunneling_and_x11_forwarding.md).
77
166
78
-
## PuTTY (Only for Windows)
167
+
###PuTTY (Only for Windows)
79
168
80
169
There are many SSH clients for Windows OS, but we recommend using [PuTTY SSH][putty link] if you have not already. Once it is installed, launch PuTTY and configure new session "Session" category as in the screenshot below:
81
170
@@ -86,8 +175,8 @@ Here we are instructing PuTTY to connect to host gw.hpc.nyu.edu on port 22 using
86
175
Once you click "Open", a terminal window with prompt for password will pop up. Enter your NetID password and you should be authorized on the gateway server. Gateways are designed to support only a very minimal set of commands and their only purpose it to let users access HPC systems. Once you are there type in an ssh command that will let you connect to Greene cluster :
87
176
88
177
```sh
89
-
#Greene Login
90
-
ssh greene.hpc.nyu.edu
178
+
#Gateway Login
179
+
ssh gw.hpc.nyu.edu
91
180
```
92
181
93
182
A new command line interface window will open up that prompts you for your password on the gateway server, from there you can connect to Greene by entering the following:
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
16
-
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
17
-
It is also possible that a host key has just been changed.
18
-
```
19
-
20
-
:::
21
-
22
-
Do not be alarmed - this is an issue that occurs because the cluster has multiple login nodes (`log-1`, `log-2`, and `log-3`) that `greene.hpc.nyu.edu` resolves to.
23
-
24
-
To avoid this warning, you can add these lines to your SSH configuration file. Open `~/.ssh/config` and place the following lines in it:
The above will also fix SSH timeout errors by extending the `ServerAliveInterval` argument.
42
-
43
5
## SSH Tunneling (Mac, Linux)
44
6
45
7
Setting up your workstation for SSH tunneling will make logging in and transferring files significantly easier, and installing and running an X server will allow you to use graphical software on the HPC clusters. X server is a software package that draws on your local screen windows created on a remote computer such as on the remote HPC.
0 commit comments