Commit 71bf9a6e authored by Antenore Gatta's avatar Antenore Gatta

When SSH_OPTIONS_USER is not set, the local username is used

parent e27717ce
......@@ -446,7 +446,9 @@ remmina_ssh_init_session(RemminaSSH *ssh)
ssh->session = ssh_new();
ssh_options_set(ssh->session, SSH_OPTIONS_HOST, ssh->server);
ssh_options_set(ssh->session, SSH_OPTIONS_PORT, &ssh->port);
ssh_options_set(ssh->session, SSH_OPTIONS_USER, ssh->user);
/* When SSH_OPTIONS_USER is not set, the local user account is used */
if (*ssh->user != 0)
ssh_options_set(ssh->session, SSH_OPTIONS_USER, ssh->user);
ssh_options_set(ssh->session, SSH_OPTIONS_SSH_DIR, g_strdup_printf("%s/.ssh", g_getenv("SNAP_USER_COMMON")));
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