Unverified Commit b9e45d10 authored by Robert Ayrapetyan's avatar Robert Ayrapetyan Committed by GitHub

Update remmina_ssh.c

Empty passphrase should be a valid input for ssh_userauth_publickey_auto. Otherwise there is an extra passphrase dialog.
parent 0a094a1d
......@@ -234,12 +234,12 @@ remmina_ssh_auth_auto_pubkey(RemminaSSH* ssh)
{
TRACE_CALL(__func__);
/* ssh->password should be ssh->passphrase, TODO */
if (ssh->passphrase == NULL || ssh->passphrase[0] == '\0') return -1;
//if (ssh->passphrase == NULL || ssh->passphrase[0] == '\0') return -1;
gint ret = ssh_userauth_publickey_auto(ssh->session, ssh->user, ssh->passphrase);
if (ret != SSH_AUTH_SUCCESS) {
remmina_ssh_set_error(ssh, _("SSH automatic public key authentication failed: %s"));
return 0;
return -1;
}
ssh->authenticated = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment