openssh-portable icon indicating copy to clipboard operation
openssh-portable copied to clipboard

Print user@host when connecting with sftp

Open neverpanic opened this issue 2 years ago • 1 comments

Prior to d989217110932490ba8ce92127a9a6838878928b, using sftp user@host would print "Connected to user@host", because the 'host' variable would also contain the username.

Parsing switched in the above mentioned commit for good reasons, but some users prefer to see the username if it was specified on the command line and never noticed that it did not show up when they specified a path on connection.

Restore the behavior of showing the username if one was specified and make it consistent regardless of whether a path was passed on the command line or not.

neverpanic avatar Mar 14 '24 14:03 neverpanic

The two CI failures seem to be due to network issues and unrelated to the PR.

neverpanic avatar Mar 14 '24 18:03 neverpanic