Re: Using ssh command from C-program with STDIN problem



On Thu, 08 Feb 2007 09:48:25 +0100
Manfred Rebentisch <mrebentisch@xxxxxxxxxxx> wrote:

Hello,
now my problem is a little bit hard. I need to transfer the public key of an
user to another machine. But the user has entered the password with my
software and I want to call ssh (or ssh-copy-id script).

Look how Expect, http://expect.nist.gov/ does it? The source is
available. If you're not writing a new program for the challenge, it
sounds like you could use Expect to do what you want.

Doug

--
For UNIX, Linux and security articles
visit http://SecurityBulletins.com/
.