simplify instructions for SSH'ing into VM

This commit is contained in:
Max Erenberg 2022-09-04 23:39:39 -04:00
parent 5399f39659
commit 25fee88b5b
1 changed files with 5 additions and 17 deletions

View File

@ -117,25 +117,13 @@ are not on campus, you can still access your VM via the following methods:
The second option is generally more convenient. The idea is to SSH into a CSC
general-use machine first, then SSH from there into your VM.
On any CSC general-use machine, copy your `id_rsa` file to the `.ssh` folder in your
home directory (e.g. via scp). Make sure that the `id_rsa` file is only readable by
you (e.g. run `chmod 600 ~/.ssh/id_rsa`). Running `ls -l ~/.ssh` should show something like this:
total 16
-rw-r--r-- 1 ctdalek ctdalek 918 Oct 14 12:05 authorized_keys
-rw-r--r-- 1 ctdalek ctdalek 25 Oct 27 14:03 config
-rw------- 1 ctdalek ctdalek 1896 Sep 3 18:23 id_rsa
-rw-r----- 1 ctdalek ctdalek 415 Sep 3 18:23 id_rsa.pub
-rw-r--r-- 1 ctdalek ctdalek 459 Nov 24 12:29 known_hosts
Note how the `id_rsa` file is not world-readable.
Now, from the CSC machine, you can SSH into your VM by running a command like the following:
From your personal machine, you can SSH into your VM by running a command like the following:
```sh
ssh debian@172.19.134.121
ssh -J ctdalek@corn-syrup.csclub.uwaterloo.ca debian@172.19.134.121
```
Replace `172.19.13.121` with the IP address of your VM, and replace `debian` with the
default username of the OS which you chose:
Replace `ctdalek` with your CSC username, replace `172.19.134.121` with the IP
address of your VM, and replace `debian` with the default username of the OS
which you chose:
* Debian: `debian`
* Ubuntu: `ubuntu`