Add docs to show using the gpg agent with systemd; set PATH for ssh unit

This commit is contained in:
rendaw
2018-03-13 16:28:36 +09:00
parent 0699273d49
commit 93b548b737
2 changed files with 55 additions and 0 deletions

View File

@@ -113,9 +113,13 @@ Requires=trezor-ssh-agent.socket
[Service]
Type=Simple
Environment="GNUPGHOME=%h/.gnupg/trezor"
Environment="PATH=/bin:/usr/bin:/usr/local/bin:%h/.local/bin"
ExecStart=/usr/bin/trezor-agent --foreground --sock-path %t/trezor-agent/S.ssh IDENTITY
````
If you've installed `trezor-agent` locally you may have to change the path in `ExecStart=`.
Replace `IDENTITY` with the identity you used when exporting the public key.
###### `trezor-ssh-agent.socket`