diff options
author | Ondrej Holy <oholy@redhat.com> | 2020-02-14 10:50:25 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2020-02-14 12:17:13 +0100 |
commit | 984bffc287d0c7b2c4d33b4531bc8a4016421754 (patch) | |
tree | 77e9f9d15df0ee52d1b7d0e1f43bf1eebf47766e | |
parent | 51841d1e8e2c167199fe4b6d54c0e0be0dd5b6a6 (diff) | |
download | gvfs-984bffc287d0c7b2c4d33b4531bc8a4016421754.tar.gz |
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.
-rwxr-xr-x | test/gvfs-test | 1 |
1 files changed, 1 insertions, 0 deletions
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}) |