1
Fork 0

SSH agent setup

This commit is contained in:
Joshua Goins 2024-06-09 09:45:24 -04:00
parent 2e93730a24
commit 1e1f8f189d
4 changed files with 18 additions and 0 deletions

View file

@ -8,3 +8,5 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export XDG_DATA_HOME="$HOME/.local/share"
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export SSH_ASKPASS="/usr/bin/ksshaskpass"
export SSH_ASKPASS_REQUIRE=prefer

View file

@ -10,3 +10,6 @@ export GOPATH="$XDG_DATA_HOME"/go
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export SSH_ASKPASS="/usr/bin/ksshaskpass"
export SSH_ASKPASS_REQUIRE=prefer

View file

@ -0,0 +1,10 @@
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target

View file

@ -8,10 +8,13 @@ Host codereview.qt-project.org
User redstrate
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
AddKeysToAgent yes
Host codereview.kdab.com
User joshua.goins
Port 29418
AddKeysToAgent yes
Host ryne.moe
Port 38901
AddKeysToAgent yes