Skip to content

Commit 9a3587e

Browse files
authored
Update 02_ssh_tunneling_and_x11_forwarding.md
Removed the man in the middle warning here and put it in the quick start since it's connected to ssh config and very common.
1 parent c58f2da commit 9a3587e

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

docs/hpc/02_connecting_to_hpc/02_ssh_tunneling_and_x11_forwarding.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,6 @@
22

33
[xquartz]: https://www.xquartz.org/
44

5-
## Avoiding Man in the Middle Warning.
6-
7-
If you see this warning:
8-
9-
:::warning
10-
11-
```sh
12-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
13-
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
14-
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
15-
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:
25-
26-
27-
:::tip
28-
29-
```sh
30-
Host greene.hpc.nyu.edu dtn.hpc.nyu.edu gw.hpc.nyu.edu
31-
StrictHostKeyChecking no
32-
ServerAliveInterval 60
33-
ForwardAgent yes
34-
StrictHostKeyChecking no
35-
UserKnownHostsFile /dev/null
36-
LogLevel ERROR
37-
```
38-
39-
:::
40-
41-
The above will also fix SSH timeout errors by extending the `ServerAliveInterval` argument.
42-
435
## SSH Tunneling (Mac, Linux)
446

457
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

Comments
 (0)