add ssh-agent
This commit is contained in:
parent
921777c048
commit
b1e16b1beb
3 changed files with 12 additions and 0 deletions
1
.config/systemd/user/default.target.wants/ssh-agent.service
Symbolic link
1
.config/systemd/user/default.target.wants/ssh-agent.service
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
/home/barak/.config/systemd/user/ssh-agent.service
|
||||
10
.config/systemd/user/ssh-agent.service
Normal file
10
.config/systemd/user/ssh-agent.service
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -37,3 +37,4 @@ ENV=$HOME/.zshrc; export ENV
|
|||
#alias ls='ls -FG'
|
||||
#alias la='ls -FGal'
|
||||
#source ~/.zshrc
|
||||
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue