Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions docs/general/access.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ An SSH key pair consists of two files: a **private key** (kept securely on your
To generate a key pair, open a terminal and run:

```
ssh-keygen -t rsa -b 4096
ssh-keygen -t ed25519
```

The `-t rsa` flag specifies the RSA key type, and `-b 4096` sets the key length to 4096 bits.
The `-t ed25519` flag forces the generation of the recommended SSH key type.

You will be prompted with a few questions:

1. **"Enter file in which to save the key"** — Press Enter to accept the default location (`~/.ssh/id_rsa`).
1. **"Enter file in which to save the key"** — Press Enter to accept the default location (`~/.ssh/id_ed25519`).
This is fine for most users.

2. **"Enter passphrase"** — This is an optional password that protects your private key. We recommend setting one. You will be asked to enter it when you use your key.

Once complete, you will have two files in your `~/.ssh/` directory:

- `id_rsa` — your **private key**. Never share this file with anyone.
- `id_rsa.pub` — your **public key**. This is what you submit to HPC@UCD.
- `id_ed25519` — your **private key**. Never share this file with anyone.
- `id_ed25519.pub` — your **public key**. This is what you submit to HPC@UCD.

To view your public key, run:

```
cat ~/.ssh/id_rsa.pub
cat ~/.ssh/id_ed25519.pub
```

The output will be a long string starting with `ssh-rsa`. Copy the entire line — this is what you paste into
The output will be a long string starting with `ssh-ed25519`. Copy the entire line — this is what you paste into
[HiPPO](https://hippo.ucdavis.edu) when requesting an account.

Once you have your public key, return to the [account request](account-requests.md) page to submit it.
Expand Down Expand Up @@ -88,15 +88,15 @@ If you set a passphrase on your SSH key (which we recommend), you will be prompt
An SSH agent caches your passphrase for the duration of your local session so you only need to enter it once:

```bash
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_ed25519
```

On macOS, the SSH agent runs automatically and your passphrase can be saved to the system Keychain. On Linux,
you may need to start the agent manually:

```bash
eval $(ssh-agent)
ssh-add ~/.ssh/id_rsa
ssh-add ~/.ssh/id_ed25519
```

## SSH config file
Expand Down
4 changes: 2 additions & 2 deletions docs/general/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The following clusters use SSH keys: Farm, Franklin, and Hive.
If you connect to one of these and are asked for a password (as distinct from a passphrase for your key), your key is
not being recognized. This is usually because of permissions or an unexpected filename. SSH expects your key to be one
of a specific set of names. Unless you have specified something other than the default, this is probably going to be
`$HOME/.ssh/id_rsa`.
`$HOME/.ssh/id_ed25519`.

If you specified a different name when generating your key, you can specify it like this:

Expand All @@ -21,7 +21,7 @@ If you kept the default value, your permissions should be set so that only you c
`(-rw------- or 600)`. To ensure this is the case, you can do the following:

```bash
chmod 600 $HOME/.ssh/id_rsa
chmod 600 $HOME/.ssh/id_ed25519
```

## Common Slurm Scheduler Issues
Expand Down
Loading