diff --git a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.java b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.java index e2fa029b..4c207e12 100644 --- a/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.java +++ b/src/org/kde/kdeconnect/Plugins/SftpPlugin/SimpleSftpServer.java @@ -91,9 +91,8 @@ class SimpleSftpServer { if (device.publicKey != null) { keyAuth.addKey(device.publicKey); sshd.setPublickeyAuthenticator(keyAuth); - } else { - sshd.setPasswordAuthenticator(passwordAuth); } + sshd.setPasswordAuthenticator(passwordAuth); } public boolean start() {