Skip to content

Commit 823f8e6

Browse files
committed
Merge branch 'ssh' into latest
2 parents 5613b99 + a25d570 commit 823f8e6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

client/src/connection/ssh/keys.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ pub fn get_keys_to_check(private_key_path: &Option<PathBuf>) -> Result<Vec<Priva
4646
let private_key = load_private_key(&path)
4747
.map_err(|err| {
4848
let filename = path.file_name()?.to_string_lossy();
49-
if !(path.ends_with(".pub")
49+
if !(filename.ends_with(".pub")
50+
|| filename.ends_with(".old")
5051
|| &filename == "known_hosts"
51-
|| &filename == "authorized_keys")
52+
|| &filename == "authorized_keys"
53+
|| &filename == "config")
5254
{
5355
warn!(
5456
"could not load private key {}: {:?}",

0 commit comments

Comments
 (0)