Skip to content

Commit 81bfc91

Browse files
authored
ssh agent workaround for keychain (#1347)
* add solution for ssh keychain * Update ssh_agent.md * Update ssh_agent.md * Update ssh_agent.md * Update ssh_agent.md
1 parent 659780b commit 81bfc91

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cookbook/ssh_agent.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,21 @@ do --env {
5252
}
5353
```
5454

55+
### [Keychain](https://www.funtoo.org/Funtoo:Keychain)
56+
57+
```nushell
58+
load-env (
59+
keychain --eval --quiet <your ssh keys, eg. id_ed25519>
60+
| lines
61+
| split column ";"
62+
| get column1
63+
| first 2
64+
| split column "="
65+
| rename name value
66+
| reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }
67+
)
68+
```
69+
5570
## Non-nushell workarounds
5671

5772
However, the commonly recommended approach involves running an ssh-agent so it establishes an user-wide socket for processes to connect to.

0 commit comments

Comments
 (0)