From 76b5930ac4c524ea27ca0321ae392705f14f43ec Mon Sep 17 00:00:00 2001 From: Sylvia Crowe Date: Tue, 5 Mar 2024 19:51:32 -0800 Subject: [PATCH] fix: set IdentityFile defaults to match man page The existing default IdentityFile list was incomplete and out of order. This updates it to match the defaults listed here: https://man7.org/linux/man-pages/man5/ssh_config.5.html --- validators.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/validators.go b/validators.go index 57b897f..62db53d 100644 --- a/validators.go +++ b/validators.go @@ -183,10 +183,12 @@ var defaults = map[string]string{ // these identities are used for SSH protocol 2 var defaultProtocol2Identities = []string{ - "~/.ssh/id_dsa", - "~/.ssh/id_ecdsa", - "~/.ssh/id_ed25519", "~/.ssh/id_rsa", + "~/.ssh/id_ecdsa", + "~/.ssh/id_ecdsa_sk", + "~/.ssh/id_ed25519", + "~/.ssh/id_ed25519_sk", + "~/.ssh/id_dsa", } // these directives support multiple items that can be collected