We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5613b99 + a25d570 commit 823f8e6Copy full SHA for 823f8e6
1 file changed
client/src/connection/ssh/keys.rs
@@ -46,9 +46,11 @@ pub fn get_keys_to_check(private_key_path: &Option<PathBuf>) -> Result<Vec<Priva
46
let private_key = load_private_key(&path)
47
.map_err(|err| {
48
let filename = path.file_name()?.to_string_lossy();
49
- if !(path.ends_with(".pub")
+ if !(filename.ends_with(".pub")
50
+ || filename.ends_with(".old")
51
|| &filename == "known_hosts"
- || &filename == "authorized_keys")
52
+ || &filename == "authorized_keys"
53
+ || &filename == "config")
54
{
55
warn!(
56
"could not load private key {}: {:?}",
0 commit comments