diff options
Diffstat (limited to 'ssh')
-rw-r--r-- | ssh/.config/profile.d/10-ssh.sh | 4 | ||||
-rw-r--r-- | ssh/.ssh/config | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ssh/.config/profile.d/10-ssh.sh b/ssh/.config/profile.d/10-ssh.sh index 82e3b31..af52410 100644 --- a/ssh/.config/profile.d/10-ssh.sh +++ b/ssh/.config/profile.d/10-ssh.sh @@ -1,3 +1,5 @@ #!/bin/sh -export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +if [ -z "$SSH_CONNECTION" ]; then + export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +fi diff --git a/ssh/.ssh/config b/ssh/.ssh/config index f910d3e..b9ef7b3 100644 --- a/ssh/.ssh/config +++ b/ssh/.ssh/config @@ -4,6 +4,7 @@ CanonicalDomains asgard.tobyvin.dev ControlPath ${XDG_RUNTIME_DIR}/ssh.%C ServerAliveInterval 300 ServerAliveCountMax 2 +IdentityFile ~/.ssh/id_ed25519_sk_rk Host *.asgard.tobyvin.dev StreamLocalBindUnlink yes |