op-askpass
Load password-protected ssh keys to your agent without prompts using 1Password.
Currently tested on Ubuntu only.
Getting started
$ pip install op-askpass
# This installs 1Password cli locally.
$ op-askpass setup-op-client my.1password.com my_username@gmail.com
$ op-askpass add-key ~/.ssh/id_rsa "my 1Password item name"
# This fetches the password from 1Password and calls ssh-add.
$ op-askpass login my
If your operating system (like Ubuntu 18) automatically adds ssh keys, but does not
unlock them use op-askpass login --no-skip-existing.
If your system does not have gpg binary to verify signature of op client,
use op-askpass setup-op-client --no-verify.
Details
op-askpass stores a small configuration file and 1Password cli called op
in your $HOME/.op-askpass directory.
The configuration file contains a mapping from ssh key fingerprint to key path
and 1Password item name. The key path is needed for loading the key when
calling op-askpass login. The item name is looked up for password and
provided instead of prompt.
Underneath, op-askpass uses SSH_ASKPASS command to override prompt and
instead provide the password from 1Password. The only prompt is shown during
op-askpass login to retrieve a 30-minutes long session key.
You can list keys added to op-askpass using list-keys command, and delete not needed
ones with op-askpass delete-key <path_to_key>.
1Password integration
For regular, non-company users the 1Password domain is my.1password.com. For
company users it is usually company.1password.com.
Currently, only password 1Password items are supported.
Metadata
Release files for op-askpass 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| op_askpass-0.0.12.tar.gz | 12.2 kB | Without provenance | Details for op_askpass-0.0.12.tar.gz |
Release files / op_askpass-0.0.12.tar.gz
| Download URL | op_askpass-0.0.12.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7506901b756a845f198bc5fd44370003a38aa7ee9e61ad670093e24a3d635161
|
|
BLAKE2b-256 checksum How to use checksums |
fa8d67ba8c51eaded8f43c0667ebe8b8f13f922b0d12658f925ba2c85068f2cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for op-askpass 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.