Re: Force sshd to prompt username

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



* On Thursday, January 19, 2017 at 10:46 PM +0530, Sudarshan Soma <sudarshan12s@xxxxxxxxx> wrote:
> 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)  .

Well then just write a wrapper script around SSH like this:

8<-----------------------------------------------------------------------------
#!/bin/bash

read -p "Username: " RUSER
ssh -l $RUSER myserver

8<-----------------------------------------------------------------------------
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux