feat: prompt user on host key verification (#943)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-10-20 09:31:20 +08:00
committed by GitHub
parent 8cbb48ed67
commit 5272324be6
38 changed files with 1076 additions and 219 deletions

View File

@@ -578,6 +578,11 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get privateKey => 'Private Key';
@override
String privateKeyNotFoundFmt(Object keyId) {
return 'Private key [$keyId] not found.';
}
@override
String get process => 'Process';
@@ -758,6 +763,34 @@ class AppLocalizationsEn extends AppLocalizations {
return 'Imported $count servers from SSH config';
}
@override
String sshHostKeyChangedDesc(Object serverName) {
return 'The SSH host key changed for $serverName. Only continue if you trust this server.';
}
@override
String sshHostKeyFingerprintMd5Base64(Object fingerprint) {
return 'Fingerprint (MD5 base64): $fingerprint';
}
@override
String sshHostKeyFingerprintMd5Hex(Object fingerprint) {
return 'Fingerprint (MD5 hex): $fingerprint';
}
@override
String get sshHostKeyType => 'SSH host key type';
@override
String sshHostKeyNewDesc(Object serverName) {
return 'A new SSH host key was received from $serverName. Review the fingerprint before trusting.';
}
@override
String sshHostKeyStoredFingerprint(Object fingerprint) {
return 'Stored fingerprint: $fingerprint';
}
@override
String get sshConfigManualSelect =>
'Would you like to select the SSH config file manually?';