1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
|
- First, you need to check to see if you already have SSH key. If you have done `csc231` or are working
in classes using GitHub classroom, it is likely that you already setup your SSH keys.
- Run the following command
~~~bash
cat ~/.ssh/id_rsa.pub
~~~
- If you have the SSH keys, you will see the following:
<figure
>
<picture>
<!-- Auto scaling with imagemagick -->
<!--
See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
-->
<source
class="responsive-img-srcset"
srcset="/fig/cloudlab/04-480.webp 480w,/fig/cloudlab/04-800.webp 800w,/fig/cloudlab/04-1400.webp 1400w,"
type="image/webp"
sizes="95vw"
>
<img
src="/fig/cloudlab/04.png"
width="100%"
height="auto"
alt="Public key generated"
loading="lazy"
onerror="this.onerror=null; $('.responsive-img-srcset').remove();"
>
</picture>
</figure>
:::{admonition} No SSH Key
- Launch your terminal (Windows Terminal or Mac) and run the following command:
- Hit `Enter` for all questions. **Do not enter a password or change the default location of the files**.
~~~bash
cd
ssh-keygen -t rsa
~~~
<figure
>
<picture>
<!-- Auto scaling with imagemagick -->
<!--
See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
-->
<source
class="responsive-img-srcset"
srcset="/fig/cloudlab/03-480.webp 480w,/fig/cloudlab/03-800.webp 800w,/fig/cloudlab/03-1400.webp 1400w,"
type="image/webp"
sizes="95vw"
>
<img
src="/fig/cloudlab/03.png"
width="100%"
height="auto"
alt="Generate SSH keys"
loading="lazy"
onerror="this.onerror=null; $('.responsive-img-srcset').remove();"
>
</picture>
</figure>
- Run the following command to display the public key
~~~bash
cat ~/.ssh/id_rsa.pub
~~~
<figure
>
<picture>
<!-- Auto scaling with imagemagick -->
<!--
See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
-->
<source
class="responsive-img-srcset"
srcset="/fig/cloudlab/04-480.webp 480w,/fig/cloudlab/04-800.webp 800w,/fig/cloudlab/04-1400.webp 1400w,"
type="image/webp"
sizes="95vw"
>
<img
src="/fig/cloudlab/04.png"
width="100%"
height="auto"
alt="Public key generated"
loading="lazy"
onerror="this.onerror=null; $('.responsive-img-srcset').remove();"
>
</picture>
</figure>
:::
- Drag your mouse over to paint/copy the key (just the text, no extra spaces after the last
character)
- Log into CloudLab, click on your username (top right) and select `Manage SSH Keys`:
<figure
>
<picture>
<!-- Auto scaling with imagemagick -->
<!--
See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
-->
<source
class="responsive-img-srcset"
srcset="/fig/cloudlab/05-480.webp 480w,/fig/cloudlab/05-800.webp 800w,/fig/cloudlab/05-1400.webp 1400w,"
type="image/webp"
sizes="95vw"
>
<img
src="/fig/cloudlab/05.png"
width="100%"
height="auto"
alt="Manage SSH Keys box"
loading="lazy"
onerror="this.onerror=null; $('.responsive-img-srcset').remove();"
>
</picture>
</figure>
- Paste the key into the `Key` box and click `Add Key`:
<figure
>
<picture>
<!-- Auto scaling with imagemagick -->
<!--
See https://www.debugbear.com/blog/responsive-images#w-descriptors-and-the-sizes-attribute and
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images for info on defining 'sizes' for responsive images
-->
<source
class="responsive-img-srcset"
srcset="/fig/cloudlab/06-480.webp 480w,/fig/cloudlab/06-800.webp 800w,/fig/cloudlab/06-1400.webp 1400w,"
type="image/webp"
sizes="95vw"
>
<img
src="/fig/cloudlab/06.png"
width="100%"
height="auto"
alt="Paste SSH keys"
loading="lazy"
onerror="this.onerror=null; $('.responsive-img-srcset').remove();"
>
</picture>
</figure>
|