RE: How can I tell openssh client to prompt for a username

From: Mark E. Donaldson (markee_at_bandwidthco.com)
Date: 07/11/04

  • Next message: Darren Tucker: "Re: openssh-3.8.1p1 & Solaris 8 Installation Issue"
    To: "'Jack ~'" <dreawn@gmail.com>, <secureshell@securityfocus.com>
    Date: Sat, 10 Jul 2004 18:09:13 -0700
    
    

    Expect, a TCL derivative, was created for this type of interactive
    communication. Install Expect and run the following:

     #!/usr/bin/expect -d
    spawn /usr/bin/ssh 192.168.0.1
    expect "root@192.168.0.1's password:"
    send "password....\r"
    expect "root@"
    send "ls"

    -----Original Message-----
    From: Jack ~ [mailto:dreawn@gmail.com]
    Sent: Thursday, July 08, 2004 9:03 AM
    To: secureshell@securityfocus.com
    Subject: Re: How can I tell openssh client to prompt for a username

    Maybe create a script wrapper for ssh that prompts for a user and host name?

    On Thu, 8 Jul 2004 13:59:20 +0100 (IST), Martin Harte
    <martin.harte@redbrick.dcu.ie> wrote:
    > Hey,
    > Just wondering if there is an option to get Openssh 3.7.1p2 client to
    > prompt for a username.
    > It doesn't suit to pass one on the command line in my situation.
    >
    > I've searched through the docs and the web for this and haven't come
    > across anything.
    >
    > Anyone know?
    >
    > Thanks,
    >
    > Martin.
    >

    ########################################################
    This message has been scanned for viruses and dangerous content by
    MailScanner, and is believed to be clean.

    postmaster@bandwidthco.com
    MailScanner at bandwidthco.com is for your absolute protection.
    ########################################################


  • Next message: Darren Tucker: "Re: openssh-3.8.1p1 & Solaris 8 Installation Issue"

    Relevant Pages

    • RE: user name prompt after office 2003 install
      ... it will prompt for the username. ... > I am installing Office 2003 using a custom .mst file created with the CIW, ... > 2003 to prompt the user to enter a username and initials as we use document ...
      (microsoft.public.office.setup)
    • Re: Password access for folders over network
      ... the network logon always uses the currently logged on user ... but you *can* get it to prompt for the password. ... username, ...
      (microsoft.public.windowsxp.security_admin)
    • Re: "Run As," Adding Names to Drop-Down Box
      ... username you specified to start the program. ... prompt to enter my password. ... Second one, I see a window flash, then nothing. ... On the second one, the script, make sure you have the quotations ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: CredientialCache.DefaultCredentials Problem
      ... set to Prompt for Username and Password, when I set it to Automatically ... I would suggest using the SharePoint Object Model. ... So why isn't the CredentialCache method working? ...
      (microsoft.public.sharepoint.windowsservices)
    • Re: Network Login format
      ... prompt says to enter the domain and username in the username field. ... >> I want to log onto the net at the login prompt. ...
      (microsoft.public.windowsxp.security_admin)