简体   繁体   English

使用比特币Trezor的SSH代理

[英]Using bitcoin trezor's ssh agent

I'm trying to use hardware wallet trezor.io as login agent for ssh protocol, which is quite cool idea. 我正在尝试使用硬件钱包trezor.io作为ssh协议的登录代理,这是一个很酷的主意。

According their how-to 根据他们的方法

http://doc.satoshilabs.com/trezor-apps/sshagent.html http://doc.satoshilabs.com/trezor-apps/sshagent.html

I'm trying to proceed with instalation: 我正在尝试进行安装:

$ sudo pip install trezor_agent

but it fails with: 但是它失败了:

hidapi/libusb/hid.c:47:20: fatal error: libusb.h: No such file or directory
#include <libusb.h>
                        ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
                        ^

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python2.7 -c hidapi/libusb/hid.c -o build/temp.linux-x86_64-2.7/hidapi/libusb/hid.o

hidapi/libusb/hid.c:47:20: fatal error: libusb.h: No such file or directory

 #include <libusb.h>

                    ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...

    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 23: ordinal not in range(128)

I'm using ubuntu 14 lts and have no experience with python. 我正在使用ubuntu 14 lts,对python没有任何经验。 I removed most of compilation log 我删除了大部分的编译日志

The error message is very clear. 该错误信息非常清楚。

libusb.h: No such file or directory libusb.h:没有这样的文件或目录

The package have a dependecy that pip can solve. 该软件包具有pip可以解决的依赖性。 You need to install libusb first. 您需要先安装libusb。

apt-get install libusb-1.0-0-dev

Every time you get such message no such file or directory you can check what you need to install with 每次收到此类消息时,都没有此类文件或目录,您可以检查所需安装的文件或目录

dpkg -S 'missing_file"

or 要么

apt-file list "missing_file"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM