Allow Fingerprint to be defined in SSH Preset. Once defined, Sshwifty will use the fingerprint value to verify the public key fingerprint of the connecting SSH host

This commit is contained in:
NI
2020-11-14 23:00:35 +08:00
parent 530570abc0
commit a2d9419989
4 changed files with 33 additions and 5 deletions

View File

@@ -732,7 +732,9 @@ class Wizard {
authentication: r.authentication,
host: r.host,
charset: r.encoding,
fingerprint: "",
fingerprint: self.preset
? self.preset.metaDefault("Fingerprint", "")
: "",
},
self.session
);
@@ -855,7 +857,7 @@ class Wizard {
default:
throw new Exception(
"Prompt is not support by auth method: " + config.auth
'Auth method "' + config.auth + '" was unsupported'
);
}