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.




Network Security Secure-Shell
[Top] [All Lists]

Controlling ssh from an external program

Subject: Controlling ssh from an external program
Date: Wed, 20 Oct 2004 15:32:26 -0400
Hi -

I am working on a linux remote administration tool, and I would like to be 
able to control ssh/scp via an external program. I know the standard answer 
to this is to use expect, however this is NOT an option.

The next standard answer is to use an empty passphrase or ssh-agent, but I
cannot guarantee that the remote system will have a keypair, so I need to be
able to fallback on password authentication if that fails. The controlling
program needs to be able to feed the password to ssh/scp.


Additionally, I can only use an unmodified version of openssh (i.e. whatever
version is available on the system that the admin tool is run from).

Any ideas?????


==========================================================
Jeff Anderson

<Prev in Thread] Current Thread [Next in Thread>