[gvfs] test: Disable password authentication in sshd_config



commit 984bffc287d0c7b2c4d33b4531bc8a4016421754
Author: Ondrej Holy <oholy redhat com>
Date:   Fri Feb 14 10:50:25 2020 +0100

    test: Disable password authentication in sshd_config
    
    Although SFTP test cases use key-based authentication, the "Password
    dialog cancelled" error is returned in case of authentication failure.
    Let's explicitly deny the password-based authentication to see "Permission
    denied" instead.

 test/gvfs-test | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/test/gvfs-test b/test/gvfs-test
index 4361f798..8bd52218 100755
--- a/test/gvfs-test
+++ b/test/gvfs-test
@@ -478,6 +478,7 @@ HostKey %(workdir)s/ssh_host_rsa_key
 UsePrivilegeSeparation no
 AuthorizedKeysFile %(authorized_keys)s
 UsePam no
+PasswordAuthentication no
 Subsystem sftp %(sftp_server)s
 ''' % {'workdir': self.workdir, 'sftp_server': sftp_server, 'authorized_keys': self.authorized_keys})
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]