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]

Re: Send SSH-Password over C-Program

Subject: Re: Send SSH-Password over C-Program
Date: Mon, 15 Oct 2007 10:57:34 +0200 (IST)
On Thu, 11 Oct 2007, mainway wrote:
I've found out that SSH doesn't expect the password over the
"normal-channel".

This is a feature :-). The simplest option is to use a key file with
empty password (man ssh-keygen).

Does anybody know if there is the possibility to insert the password into
the "ssh -l root server"-command?
That would solve the problem...

You need a pseudo-terminal to fool ssh: the straightforward way is to
use expect <http://expect.nist.gov/FAQ.html#q1> (there is a Perl
version as well).

-- 
Regards,
ASK

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