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

Commit

Permalink
Emphasize keys over passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
bkmgit authored Mar 25, 2021
1 parent 3d0690b commit 7cedea4
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions _episodes/01-connecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,27 +227,31 @@ example computer, we will use SSH (if you are using PuTTY, see above).

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

```
ssh yourUsername@{{ site.workshop_host_login }}
ssh -i ~/.ssh/key_{{ site.workshop_host }}_ed25519 yourUsername@{{ site.workshop_host_login }}
```
{: .language-bash}

or

```
ssh -i ~/.ssh/key_{{ site.workshop_host }}_ed25519 yourUsername@{{ site.workshop_host_login }}
ssh -i ~/.ssh/key_{{ site.workshop_host }}_rsa yourUsername@{{ site.workshop_host_login }}
```
{: .language-bash}

or
or if SSH keys have not been enabled

```
ssh -i ~/.ssh/key_{{ site.workshop_host }}_rsa yourUsername@{{ site.workshop_host_login }}
ssh yourUsername@{{ site.workshop_host_login }}
```
{: .language-bash}


```
{% include /snippets/01/login_output.{{ site.workshop_host_id }} %}
```
Expand Down

0 comments on commit 7cedea4

Please sign in to comment.