Re: Send SSH-Password over C-Program
- From: Alexander Klimov <alserkli@xxxxxxxx>
- 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
- References:
- Send SSH-Password over C-Program
- From: mainway
- Send SSH-Password over C-Program
- Prev by Date: Re: SSH command in windows
- Next by Date: Re: SSH command in windows
- Previous by thread: Re: Send SSH-Password over C-Program
- Next by thread: Re: Send SSH-Password over C-Program
- Index(es):