1
1
Fork 0

ssh_config: Default to IdentitiesOnly yes

This commit is contained in:
Jonathan Schleifer 2022-12-04 23:47:44 +00:00
parent 802b147758
commit 42df8d2bba
4 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
function gsftp --wraps sftp function gsftp --wraps sftp
set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
sftp $argv sftp -o IdentitiesOnly=no $argv
end end

View file

@ -1,4 +1,4 @@
function gssh --wraps ssh function gssh --wraps ssh
set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh set -lx SSH_AUTH_SOCK $GNUPGHOME/S.gpg-agent.ssh
ssh $argv ssh -o IdentitiesOnly=no $argv
end end

View file

@ -16,6 +16,7 @@ Host wip.pkgsrc.org
Ciphers aes256-gcm@openssh.com Ciphers aes256-gcm@openssh.com
Host * Host *
IdentitiesOnly yes
Ciphers chacha20-poly1305@openssh.com Ciphers chacha20-poly1305@openssh.com
KexAlgorithms curve25519-sha256@libssh.org KexAlgorithms curve25519-sha256@libssh.org
HostKeyAlgorithms ssh-ed25519 HostKeyAlgorithms ssh-ed25519

4
zshrc
View file

@ -376,9 +376,9 @@ if __has_command gpg gpg2; then
fi fi
[ -n "$sock" ] || sock="$GNUPGHOME/S.gpg-agent.ssh" [ -n "$sock" ] || sock="$GNUPGHOME/S.gpg-agent.ssh"
alias gssh="SSH_AUTH_SOCK=$sock ssh" alias gssh="SSH_AUTH_SOCK=$sock ssh -o IdentitiesOnly=no"
alias gssh-add="SSH_AUTH_SOCK=$sock ssh-add" alias gssh-add="SSH_AUTH_SOCK=$sock ssh-add"
alias gsftp="SSH_AUTH_SOCK=$sock sftp" alias gsftp="SSH_AUTH_SOCK=$sock sftp -o IdentitiesOnly=no"
fi fi
if __has_command cryptopassphrase; then if __has_command cryptopassphrase; then