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

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

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, 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.


For UNIX, Linux and security articles