Force sshd to prompt username
Ziirish
ziirish at ziirish.info
Fri Jan 20 04:21:46 AEDT 2017
* On Thursday, January 19, 2017 at 10:46 PM +0530, Sudarshan Soma <sudarshan12s at gmail.com> 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<-----------------------------------------------------------------------------
More information about the openssh-unix-dev
mailing list