From 8b85090fbaebd0a1edea97bdfa747a632ee93f19 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 17 Jul 2018 16:50:53 +0200 Subject: [PATCH] trezor: usage for TREZOR_PATH variable This is not a great place, as the variable will work anywhere, but I couldn't find a better place to put it. Also fixes a typo in the service definition. --- doc/README-SSH.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/README-SSH.md b/doc/README-SSH.md index 343caa0..6d85faa 100644 --- a/doc/README-SSH.md +++ b/doc/README-SSH.md @@ -123,7 +123,7 @@ Description=trezor-agent SSH agent Requires=trezor-ssh-agent.socket [Service] -Type=Simple +Type=simple Environment="DISPLAY=:0" 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 @@ -133,6 +133,14 @@ If you've installed `trezor-agent` locally you may have to change the path in `E Replace `IDENTITY` with the identity you used when exporting the public key. +If you have multiple Trezors connected, you can select which one to use via a `TREZOR_PATH` +environment variable. Use `trezorctl list` to find the correct path. Then add it +to the agent with the following line: +```` +Environment="TREZOR_PATH=" +```` +Note that USB paths depend on the _USB port_ which you use. + ###### `trezor-ssh-agent.socket` ````