Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 7cedea4

Browse files
authored
Emphasize keys over passwords
1 parent 3d0690b commit 7cedea4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

_episodes/01-connecting.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -227,27 +227,31 @@ example computer, we will use SSH (if you are using PuTTY, see above).
227227

228228
SSH allows us to connect to UNIX computers remotely, and use them as if they
229229
were our own. The general syntax of the connection command follows the format
230-
231230
`ssh -i ~/.ssh/key_for_remote_computer [email protected]`
232-
when using SSH keys. Let's attempt to connect to the HPC system now:
231+
when using SSH keys and `ssh [email protected]` if only
232+
password access is available. Let's attempt to connect to the HPC system
233+
now:
233234

234235
```
235-
ssh yourUsername@{{ site.workshop_host_login }}
236+
ssh -i ~/.ssh/key_{{ site.workshop_host }}_ed25519 yourUsername@{{ site.workshop_host_login }}
236237
```
237238
{: .language-bash}
238239

240+
or
241+
239242
```
240-
ssh -i ~/.ssh/key_{{ site.workshop_host }}_ed25519 yourUsername@{{ site.workshop_host_login }}
243+
ssh -i ~/.ssh/key_{{ site.workshop_host }}_rsa yourUsername@{{ site.workshop_host_login }}
241244
```
242245
{: .language-bash}
243246

244-
or
247+
or if SSH keys have not been enabled
245248

246249
```
247-
ssh -i ~/.ssh/key_{{ site.workshop_host }}_rsa yourUsername@{{ site.workshop_host_login }}
250+
ssh yourUsername@{{ site.workshop_host_login }}
248251
```
249252
{: .language-bash}
250253

254+
251255
```
252256
{% include /snippets/01/login_output.{{ site.workshop_host_id }} %}
253257
```

0 commit comments

Comments
 (0)