ssh (sftp) connection attempts login with local username first, fails, then remote username
Affected version
- Other: Ubuntu 22.04.3 with Files 42.6
Steps to reproduce
- Initiate a connection to an ssh (sftp) server with a different username than the local username.
- Tell Files to remember the login info.
- Disconnect and reconnect.
Current behavior
Files attempts to log in with the local username, fails, then sends the stored remote username and successfully logs in. This happens consistently, not just the initial login.
Expected behavior
Files should send the stored remote username, never the local username.
Additional information
Munged log excerpt from CentOS server is below. I replaced the usernames and servername; localuser is the username I'm logged into on the Ubuntu machine, while serveruser is the username for the remote server that is saved in Files (Seahorse?).
Aug 26 08:59:25 servername sshd[14968]: Invalid user localuser from 192.168.2.120 port 44372 Aug 26 08:59:25 servername sshd[14968]: input_userauth_request: invalid user localuser [preauth] Aug 26 08:59:25 servername sshd[14968]: Postponed keyboard-interactive for invalid user localuser from 192.168.2.120 port 44372 ssh2 [preauth] Aug 26 08:59:25 servername sshd[14972]: Accepted keyboard-interactive/pam for serveruser from 192.168.2.120 port 44380 ssh2 Aug 26 08:59:26 servername sshd[14972]: pam_unix(sshd:session): session opened for user serveruser by (uid=0)