Force sshd to prompt username

Sudarshan Soma sudarshan12s at gmail.com
Fri Jan 20 04:16:59 AEDT 2017


No. I am trying to invoke ssh command from my code something like
system("ssh ip -p <port>")  as custom action and would want the sshd to
handle Login screens (prompting user/passwd., etc)  .


Best Regards,


On Thu, Jan 19, 2017 at 10:26 PM, Ziirish <ziirish at ziirish.info> wrote:

> Hi,
>
> Can't you just use the user at server syntax or even the -l flag?
>
> cogan at localhost$ ssh xyz at myserver
> cogan at localhost$ ssh -l xyz myserver
>
> * On Thursday, January 19, 2017 at 10:21 PM +0530, Sudarshan Soma <
> sudarshan12s at gmail.com> wrote:
> > Hi, Can I send ssh request to sshd to prompt for username along with
> > password.
> >
> > Ex:
> >
> > cogan at localhost$ ssh myserver
> >
> > Login:xyz
> > password:
> >
> >
> > Login is automatically taken as cogan, wanted to ignore this and
> >
> > instead prompt login and take it from user, Please suggest.
> >
> >
> > Best Regards,
>


More information about the openssh-unix-dev mailing list