-
Notifications
You must be signed in to change notification settings - Fork 2
Keeper ssh #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Keeper ssh #78
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
rerpha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
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. | ||
rerpha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
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. | ||
rerpha marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
||
|
||
## Manually Setting up SSH agent | ||
|
||
In a powershell window, run the following commands: | ||
```powershell | ||
|
@@ -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. | ||
|
||
|
@@ -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 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.