From 984bffc287d0c7b2c4d33b4531bc8a4016421754 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Fri, 14 Feb 2020 10:50:25 +0100 Subject: 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(+) (limited to 'test') 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}) -- cgit v1.2.1