mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-10 10:14:20 +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
|
|
@ -1,9 +1,11 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Miscellaneous settings for X11 on %I
|
Description=Miscellaneous settings for X11 on %I
|
||||||
PartOf=graphical-session@%i.target
|
PartOf=graphical-session@%i.target
|
||||||
|
After=ssh-agent.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=DISPLAY=%I
|
Environment=DISPLAY=%I
|
||||||
ExecStart=/usr/bin/xset -b
|
ExecStart=/usr/bin/xset -b
|
||||||
|
ExecStart=%h/.config/awesome/bin/ssh-add
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=false
|
RemainAfterExit=false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue