Skip to content
Merged
Changes from 2 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
29 changes: 26 additions & 3 deletions doc/tools/SSH-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,30 @@ example, by being copied onto instruments). Do not share your **private** key. T
is additionally encrypted using your selected password.
:::

## Setting up SSH agent
{#keeper_ssh}
## Keeper

To avoid having to copy and paste your passphrase every time, you can use [Keeper](https://ukri.sharepoint.com/sites/thesource/SitePages/Keeper-Password-Manager.aspx) to store your passwords.

If you want to use Keeper (you'll need the desktop client for this, _not_ the browser plugin) for storing your SSH keys, and not have local plaintext copies on your machine, you can do so.

This is done by following [this guide](https://docs.keeper.io/en/keeperpam/privileged-access-manager/ssh-agent#activating-the-ssh-agent) with your public key, private key and passphrase filled in.

In `Settings -> Developer`, enable the "SSH Agent" which will add your keys, without needing to enter the passphrases, when the keeper vault is unlocked.

Ignore the section below as you don't need to manually set up an SSH agent.

You may need to [turn the `OpenSSH` agent off](https://docs.keeper.io/en/keeperpam/privileged-access-manager/ssh-agent#windows-note-on-ssh-agent-conflicts) if it's on your machine - see if `ssh-agent` is running in your services in task manager.

### Troubleshooting

#### SSH works and prompts to use passphrase, but git doesn't show the prompt
If `ssh [email protected]` works fine, your SSH key has been added to Github, so that's a good start.

You may need to set the `GIT_SSH` environment variable to wherever your git installation is as git might try and use its own ssh executable which doesn't seem to work with Keeper. `where ssh` will tell you where this is.


## Manually Setting up SSH agent

In a powershell window, run the following commands:
```powershell
Expand Down Expand Up @@ -59,7 +82,7 @@ To connect via SSH to an instrument, use:
ssh spudulike@NDXINST
```

This will prompt you on each connection for the passphrase to unlock your SSH key, this is the
(If you aren't [using Keeper](#keeper_ssh)) This will prompt you on each connection for the passphrase to unlock your SSH key, this is the
password you set earlier for your personal SSH key. You will not be prompted for an
account password; your key is sufficient to grant you access.

Expand All @@ -72,7 +95,7 @@ run a command as a privileged user.
:::

Typing the password to unlock your SSH key for each instrument would be tedious.
To avoid this, we can **temporarily** add the key to the SSH agent:
To avoid this, we can either [use Keeper](#keeper_ssh), or **temporarily** add the key to the SSH agent:

```
ssh-add
Expand Down
Loading