Skip to content

Commit dfe0219

Browse files
committed
Added readme updates for ssh-tpm-add
Signed-off-by: Morten Linderud <[email protected]>
1 parent 4c484e5 commit dfe0219

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ existing PKCS11 libraries into the ssh-agent and/or ssh client.
1919
* TPM session encryption.
2020
* Proxy support towards other `ssh-agent` servers for fallbacks.
2121

22-
# Experimental
23-
24-
The key format and technical details might change between iterations. Consider
25-
this agent experimental.
22+
# SWTPM support
2623

2724
Instead of utilizing the TPM directly, you can use `--swtpm` or `export
2825
SSH_TPM_AGENT_SWTPM=1` to create a identity backed by
@@ -162,6 +159,24 @@ ssh-rsa AAAAB3NzaC1yc[...]8TWynQ== ssh-agent
162159
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNo[...]q4whro= ssh-tpm-agent
163160
```
164161
162+
### ssh-tpm-add
163+
164+
```
165+
$ ssh-tpm-agent --no-load
166+
2023/08/12 13:40:50 Listening on /run/user/1000/ssh-tpm-agent.sock
167+
168+
$ export SSH_AUTH_SOCK="/run/user/$(id -u)/ssh-tpm-agent.sock"
169+
170+
$ ssh-add -L
171+
The agent has no identities.
172+
173+
$ ssh-tpm-add $HOME/.ssh/id_ecdsa.tpm
174+
Identity added: /home/user/.ssh/id_ecdsa.tpm
175+
176+
$ ssh-add -L
177+
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJCxqisGa9IUNh4Ik3kwihrDouxP7S5Oun2hnzTvFwktszaibJruKLJMxHqVYnNwKD9DegCNwUN1qXCI/UOwaSY= test
178+
```
179+
165180
# ssh-config
166181
167182
It is possible to use the public keys created by `ssh-tpm-keygen` inside ssh

0 commit comments

Comments
 (0)