d522d148ef
Hi, I ran into this connection error: ```` > trezor-agent timothy@localhost 2017-04-10 00:22:01,818 ERROR Connection error: open failed [__main__.py:130] ```` I didn't know what was going on, whether there was a problem connecting to localhost or what. I eventually logged into trezor wallet and found that there too, my device was not recognized (probably because I did not unplug it/replug it after updating the HID settings.) Unplugging it and replugging it fixed everything. |
7 years ago | |
---|---|---|
scripts | 8 years ago | |
trezor_agent | 7 years ago | |
.gitignore | 8 years ago | |
.pylintrc | 8 years ago | |
.travis.yml | 8 years ago | |
LICENSE | 9 years ago | |
README-GPG.md | 7 years ago | |
README-SSH.md | 8 years ago | |
README.md | 8 years ago | |
setup.py | 7 years ago | |
tox.ini | 8 years ago |
README.md
Using TREZOR as a hardware SSH/GPG agent
See SatoshiLabs' blog posts about this feature:
- TREZOR Firmware 1.3.4 enables SSH login
- TREZOR Firmware 1.3.6 — GPG Signing, SSH Login Updates and Advanced Transaction Features for Segwit
- TREZOR Firmware 1.4.0 — GPG decryption support
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.