Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: password on command line, or other options? |
|---|---|
| Date: | Mon, 30 Jan 2006 21:19:07 +0200 (EET) |
Hi Here is something that seems to work You need 2 scripts. a .sh and a .pl (perl and shell) $ cat echo_pass #!/bin/sh
echo p4ssword $ chmod a+rx echo_pass $ cat setsid.pl #!/usr/bin/perl
use POSIX(setsid);
if(fork()) { wait; } else { setsid; exec {$ARGV[0]} @ARGV; }
$ chmod a+rx setsid.pl
$ DISPLAY=y SSH_ASKPASS=./echo_pass ./setsid.pl ssh user@hostssh should use echo_pass when is prompted for password
catam
On Sun, 29 Jan 2006, Michael W. Lucas wrote:
Hi,
I have a client who is using rsh with ciscoconf (http://sourceforge.net/project/showfiles.php?group_id=25401&package_id=31646) on FreeBSD to create and keep RCS logs of his router and switch configurations.
I'd like to replace rsh with ssh.
Ciscoconfd will let me execute an arbitrary configuration-retrieval program instead of rsh. The trick is, how to get ssh to work non-interactively with a Cisco device. It seems that Cisco won't support an authorized_keys mechanism for a user, so I have to somehow get a Unix-ish SSH client that will support using a password on the command line.
Any suggestions out there? Surely someone has already done this?
Thanks, ==ml
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | How to make sshd inherit environment variable from its parent process?, Chansup Byun |
|---|---|
| Previous by Thread: | password on command line, or other options?, Michael W. Lucas |
| Next by Thread: | How to make sshd inherit environment variable from its parent process?, Chansup Byun |
| Indexes: | [Date] [Thread] [Top] [All Lists] |