2
0
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:
Albert Vaca
2018-12-02 20:00:29 +01:00
parent 04e605bcf9
commit 18cba01f29

View File

@@ -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);
}