Hardware-based SSH/PGP agent
Go to file
Tomás Rojas 26d7dd3124
Cache public keys for the duration of the agent
This saves a lot of time when connecting to multiple hosts
simultaneously (e.g., during a deploy) as every time we are asked to sign a
challenge, all public keys are iterated to find the correct one. This
can become especially slow when using the Bridge transport and/or many
identities are defined.
2017-04-22 14:47:30 +03:00
scripts gpg: list fingerpints explicitly during init 2016-12-27 10:04:48 +02:00
trezor_agent Cache public keys for the duration of the agent 2017-04-22 14:47:30 +03:00
.gitignore gitignore: sublime text project files 2016-07-26 17:57:34 +03:00
.pylintrc fix pylint warnings 2017-04-21 22:56:50 +03:00
.travis.yml travis: fix dependency 2017-04-22 10:53:39 +03:00
LICENSE Initial commit 2015-06-06 17:42:48 +03:00
README-GPG.md README: password manager usage example 2017-03-28 21:21:35 +03:00
README-SSH.md README: add Hg demo 2016-11-08 21:45:42 +02:00
README.md README: upgrade also pip 2017-01-01 10:08:19 +02:00
setup.py bump version 2017-03-18 16:49:09 +02:00
tox.ini fix pydocstyle warnings 2017-04-21 22:51:11 +03:00

Using TREZOR as a hardware SSH/GPG agent

Build Status Python Versions Package Version Development Status Downloads

See SatoshiLabs' blog posts about this feature:

Installation

First, make sure that the latest trezorlib Python package is installed correctly (at least v0.6.6):

$ apt-get install python-dev libusb-1.0-0-dev libudev-dev
$ pip install -U setuptools pip
$ pip install Cython trezor

Make sure that your udev rules are configured correctly. Then, install the latest trezor_agent package:

$ pip install trezor_agent

Or, directly from the latest source code (if pip doesn't work for you):

$ git clone https://github.com/romanz/trezor-agent && cd trezor-agent
$ python setup.py build && python setup.py install

Finally, verify that you are running the latest TREZOR firmware version (at least v1.4.0):

$ trezorctl get_features | head
vendor: "bitcointrezor.com"
major_version: 1
minor_version: 4
patch_version: 0
...

If you have an error regarding protobuf imports (after installing it), please see this issue.

Usage

For SSH, see the following instructions (for Windows support, see trezor-ssh-agent project (by Martin Lízner)).

For GPG, see the following instructions.

See here for PIN entering instructions.

Troubleshooting

If there is an import problem with the installed protobuf package, see this issue for fixing it.

Gitter

Questions, suggestions and discussions are welcome: Chat