mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-15 04:34:21 +02:00
ssh: add all SSH keys in ssh-agent on start
This commit is contained in:
parent
3826c390b5
commit
057c3daf07
2 changed files with 12 additions and 0 deletions
10
bin/ssh-add
Executable file
10
bin/ssh-add
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd ~
|
||||
ssh-add $(
|
||||
sed -n 's/^ *IdentityFile ~\/\([^ ]*\).*/\1/p' ~/.ssh/config \
|
||||
| sort \
|
||||
| uniq
|
||||
)
|
||||
|
||||
ssh-add -l
|
Loading…
Add table
Add a link
Reference in a new issue