Skip to content

Commit 3e6efbc

Browse files
authored
Merge pull request #202 from hardy-ethan/update-caen-url
Update CAEN Linux Remote Login Service URL
2 parents ac56854 + b9b8c08 commit 3e6efbc

File tree

3 files changed

+30
-20
lines changed

3 files changed

+30
-20
lines changed

docs/setup_caen.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ To access CAEN Linux from off campus, you'll first need to connect to the UM VPN
3636
Test an SSH connection. Be sure to change `awdeorio` to your own uniqname.
3737

3838
```console
39-
40-
The authenticity of host 'login.engin.umich.edu (141.213.74.65)' can't be established.
39+
$ ssh -T awdeorio@login-course.engin.umich.edu
40+
The authenticity of host 'login-course.engin.umich.edu (141.213.74.65)' can't be established.
4141
ECDSA key fingerprint is SHA256:LL0GPTtaVGa6gvv2kVpGq4ZULA1l5pw2wXC4dK3ymIk.
4242
Are you sure you want to continue connecting (yes/no)? yes
43-
Warning: Permanently added 'login.engin.umich.edu,141.213.74.65' (ECDSA) to the list of known hosts.
43+
Warning: Permanently added 'login-course.engin.umich.edu,141.213.74.65' (ECDSA) to the list of known hosts.
4444
Password:
4545
Duo two-factor login for awdeorio
4646

@@ -56,10 +56,20 @@ Success. Logging you in...
5656
-bash-4.2$
5757
```
5858

59+
If you are prompted with
60+
61+
```console
62+
The host key is known by the following other names/addresses:
63+
~/.ssh/known_hosts:1: login.engin.umich.edu
64+
Are you sure you want to continue connected (yes/no/[fingerprint])?
65+
````
66+
67+
Enter **yes**. This is due to CAEN's Linux Remote Login Service changing URLs.
68+
5969
Exit as soon as your test is successful.
6070
```console
6171
$ exit
62-
Connection to login.engin.umich.edu closed.
72+
Connection to login-course.engin.umich.edu closed.
6373
```
6474

6575
<div class="primer-spec-callout warning" markdown="1">
@@ -84,7 +94,7 @@ $ make clean
8494

8595
Next, copy files using `rsync`. Remember to change `awdeorio` to your username.
8696
```console
87-
$ rsync -rtv --exclude '.git*' ../stats/ [email protected]:stats-copy/
97+
$ rsync -rtv --exclude '.git*' ../stats/ awdeorio@login-course.engin.umich.edu:stats-copy/
8898
building file list ... done
8999
created directory stats-copy
90100
./
@@ -111,7 +121,7 @@ total size is 8818 speedup is 0.90
111121
## Login with `ssh`
112122
Now log in to CAEN Linux. Your terminal is now a shell on a *different computer*, `caen-vnc-vm16` in this example. Yours may be different. Don't forget to change `awdeorio` to your own uniqname.
113123
```console
114-
124+
$ ssh awdeorio@login-course.engin.umich.edu
115125
$ hostname
116126
caen-vnc-vm16.engin.umich.edu
117127
```
@@ -174,7 +184,7 @@ Host *
174184

175185
SSH into CAEN Linux.
176186
```console
177-
187+
$ ssh awdeorio@login-course.engin.umich.edu
178188
Password:
179189
Duo two-factor login for awdeorio
180190

@@ -192,7 +202,7 @@ $
192202

193203
Open a second terminal and run an `rsync` command, which uses the new configuration. No authentication is required!
194204
```console
195-
$ rsync -rtv --exclude '.git*' ../stats/ [email protected]:stats-copy/
205+
$ rsync -rtv --exclude '.git*' ../stats/ awdeorio@login-course.engin.umich.edu:stats-copy/
196206
building file list ... done
197207

198208
sent 273 bytes received 20 bytes 586.00 bytes/sec
@@ -217,7 +227,7 @@ An alternative to copying code to CAEN Linux is checking out a your code from Gi
217227

218228
SSH to a CAEN Linux machine and see the copy we made earlier using `rsync`.
219229
```console
220-
230+
$ ssh awdeorio@login-course.engin.umich.edu
221231
$ ls
222232
stats-copy # this is from our rsync'ed copy earlier
223233
```
@@ -242,14 +252,14 @@ stats stats-copy
242252
### Synchronizing deleted files
243253
Tell `rsync` to synchronize deleted files. In other words, if it's gone on your laptop, delete it on CAEN.
244254
```console
245-
$ rsync -rtv --delete --exclude '.git*' ../stats/ [email protected]:stats-copy/
255+
$ rsync -rtv --delete --exclude '.git*' ../stats/ awdeorio@login-course.engin.umich.edu:stats-copy/
246256
```
247257
{: data-variant="no-line-numbers" }
248258

249259
### Don't synchronize Git-ignored files
250260
Tell `rsync` not to synchronize files ignored by Git. You can also combine this option with `--delete`.
251261
```console
252-
$ rsync -rtv --exclude '.git*' --filter=':- .gitignore' ../stats/ [email protected]:stats-copy/
262+
$ rsync -rtv --exclude '.git*' --filter=':- .gitignore' ../stats/ awdeorio@login-course.engin.umich.edu:stats-copy/
253263
```
254264
{: data-variant="no-line-numbers" }
255265

@@ -264,7 +274,7 @@ sync :
264274
--exclude '.git*' \
265275
--filter=':- .gitignore' \
266276
../stats/ \
267-
[email protected]:stats-copy/
277+
awdeorio@login-course.engin.umich.edu:stats-copy/
268278
```
269279

270280
Now you can type `make sync` as a short cut.
@@ -276,7 +286,7 @@ rsync \
276286
--exclude '.git*' \
277287
--filter=':- .gitignore' \
278288
../stats/ \
279-
[email protected]:stats-copy/
289+
awdeorio@login-course.engin.umich.edu:stats-copy/
280290
building file list ... done
281291
./
282292
Makefile

docs/setup_emacs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,18 +490,18 @@ $ emacs
490490

491491
SSH into your remote server, CAEN Linux in this example. This will set up an SSH multiplexing connection.
492492
```console
493-
$ ssh login.engin.umich.edu
493+
$ ssh login-course.engin.umich.edu
494494
...
495495
```
496496

497-
In Emacs, open the file `/ssh:login.engin.umich.edu:main.cpp`. Recall `C-x C-f` is `find-file`. Tab completion works in the minibuffer. You're now editing a file `main.cpp` on a remote server.
497+
In Emacs, open the file `/ssh:login-course.engin.umich.edu:main.cpp`. Recall `C-x C-f` is `find-file`. Tab completion works in the minibuffer. You're now editing a file `main.cpp` on a remote server.
498498

499499
### Pair programming with tmux
500500
Pair program on a remote machine with two people inside the same Emacs instance. We'll use tmux, which is a terminal multiplexer.
501501

502502
Alice connects to a remote server containing her code. She starts a tmux session named `shared`. Then, she starts Emacs inside that tmux session.
503503
```console
504-
$ ssh login.engin.umich.edu
504+
$ ssh login-course.engin.umich.edu
505505
$ hostname
506506
caen-vnc-vm05.engin.umich.edu
507507
$ cd stats

docs/setup_style.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ We will use several tools to check the style of your code.
2727
## Prerequisites
2828
You can connect to CAEN Linux, where the tools are installed. See the [CAEN Linux tutorial](setup_caen.html) for help.
2929
```console
30-
30+
$ ssh awdeorio@login-course.engin.umich.edu
3131
...
3232
Success. Logging you in...
3333
```
@@ -112,7 +112,7 @@ We're going to synchronize our code to CAEN Linux many times. These shortcuts w
112112

113113
Be sure that you can [avoid repeated two-factor authentication (2FA)](setup_caen.html#avoiding-repeated-2fa). In a separate terminal, connect to CAEN Linux with SSH so you won't have to enter your password again.
114114
```console
115-
115+
$ ssh awdeorio@login-course.engin.umich.edu
116116
Password:
117117
Duo two-factor login for awdeorio
118118

@@ -146,15 +146,15 @@ manzana.local
146146
$ pwd
147147
/Users/awdeorio/src/eecs280/stats
148148
$ make sync
149-
rsync -rtv --delete --exclude '.git*' --filter=':- .gitignore' ./ [email protected]:stats-copy/
149+
rsync -rtv --delete --exclude '.git*' --filter=':- .gitignore' ./ awdeorio@login-course.engin.umich.edu:stats-copy/
150150
```
151151

152152
### Connect to CAEN Linux
153153
Connect to CAEN Linux via `ssh`. If you're already connected, you don't need to connect again.
154154
```console
155155
$ hostname
156156
manzana.local
157-
157+
$ ssh awdeorio@login-course.engin.umich.edu
158158
Success. Logging you in...
159159
...
160160
$ hostname

0 commit comments

Comments
 (0)