RE: How can I tell openssh client to prompt for a username
From: Mark E. Donaldson (markee_at_bandwidthco.com)
Date: 07/11/04
- Previous message: Joshua M. Brown: "Re: openssh-3.8.1p1 & Solaris 8 Installation Issue"
- In reply to: Jack ~: "Re: How can I tell openssh client to prompt for a username"
- Next in thread: Martin Schmitt: "Re: How can I tell openssh client to prompt for a username"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
########################################################
- Previous message: Joshua M. Brown: "Re: openssh-3.8.1p1 & Solaris 8 Installation Issue"
- In reply to: Jack ~: "Re: How can I tell openssh client to prompt for a username"
- Next in thread: Martin Schmitt: "Re: How can I tell openssh client to prompt for a username"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|