diff --git a/docs/general/access.md b/docs/general/access.md index 7586a7cd..0706aa88 100644 --- a/docs/general/access.md +++ b/docs/general/access.md @@ -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. @@ -88,7 +88,7 @@ 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, @@ -96,7 +96,7 @@ 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 diff --git a/docs/general/troubleshooting.md b/docs/general/troubleshooting.md index f5270428..553bd99d 100644 --- a/docs/general/troubleshooting.md +++ b/docs/general/troubleshooting.md @@ -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: @@ -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