Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 348323

Summary: net-misc/openssh: [Feature Request] ssh(1) option to prompt for username
Product: Gentoo Linux Reporter: mut80r <mut80r>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: enhancement CC: mgorny
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description mut80r@hotmail.co.uk 2010-12-10 00:53:45 UTC
Hello.

  As I understand it, ssh(1) has no option (e.g. environment variable, ssh_config(5) line, etc) to instruct it to prompt you for a username. If you do not give a username when running ssh, it will use the value of the $USER environment variable, and if you give a username when running ssh it will use that.

  I would like to submit a feature request for an option (e.g. -o PromptForUsername) that is not activated by default but would cause ssh(1) to prompt for a username before or after the connection has been established (whichever is most technically feasible), before authentication such as password/pubkey/etc begins. Similar to the behaviour of PuTTY, if you will.



  It could look like this:

 $ cat .ssh/config
...
Host *
  ...
  PromptForUsername yes

 $ ssh host
Username: xxxx
...
Comment 1 SpanKY gentoo-dev 2010-12-10 16:54:58 UTC
sorry, but we usually dont do upstream development.  this sort of feature request would be filed here:
https://bugzilla.mindrot.org/