Skip to content
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

Increase socket timeout & better packaging #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[dev-packages]



[packages]

ledgerblue = "*"


[requires]

python_version = "2.7"
150 changes: 150 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,29 @@ A simple PGP and SSH agent for Ledger Blue, supporting prime256v1 and ed25519 ke

This agent is compatible with the third party SSH/PGP host client from Roman Zeyde available at https://github.com/romanz/trezor-agent - it is recommended to use it for extra functionalities

You can also use the SSH functionalities with the following instructions using Python 2 :
## Installation

You'll need [`pipenv`](https://docs.pipenv.org) and Python 2.

Clone this repo somewhere, then run the following inside it:

pipenv install

This will automatically create a Python 2 "virtualenv" with the Ledger Blue Python libraries this software depends on.

## Usage

Run getPublicKey.py to get the public key in SSH format, to be added to your authorized keys on the target

```
python getPublicKey.py
pipenv run python getPublicKey.py
ecdsa-sha2-nistp256 AAAA....
```

Run agent.py, providing the base64 encoded key retrieved earlier

```
python agent.py --key AAAA....
pipenv run python agent.py --key AAAA....
```

Export the environment variables in your shell to use it
Expand Down
2 changes: 1 addition & 1 deletion agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
SIG_HEADER_EDDSA = "ssh-ed25519"

SOCK_PREFIX = 'blue-ssh-agent'
TIMEOUT = 0.5
TIMEOUT = 1

SSH2_AGENTC_REQUEST_IDENTITIES = 11
SSH2_AGENTC_SIGN_REQUEST = 13
Expand Down