mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Fix key auth for sftp
It was still using the old device key pairs we keep for compatibility, which was null.
This commit is contained in:
@@ -106,8 +106,10 @@ class SimpleSftpServer {
|
||||
|
||||
if (device.publicKey != null) {
|
||||
keyAuth.deviceKey = device.publicKey;
|
||||
sshd.setPublickeyAuthenticator(keyAuth);
|
||||
} else {
|
||||
keyAuth.deviceKey = device.certificate.getPublicKey();
|
||||
}
|
||||
sshd.setPublickeyAuthenticator(keyAuth);
|
||||
sshd.setPasswordAuthenticator(passwordAuth);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user