SSH agent setup
This commit is contained in:
parent
2e93730a24
commit
1e1f8f189d
4 changed files with 18 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
10
private_dot_config/systemd/user/ssh-agent.service
Normal file
10
private_dot_config/systemd/user/ssh-agent.service
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue