RE: ssh read password from stdin
From: Wilson, Richard E (richard.wilson_at_eds.com)
To: "'Popeanga Marian'" <firstname.lastname@example.org>, email@example.com Date: Thu, 20 Nov 2003 11:06:00 -0600
If you cannot set up the ssh-agent processes to provide passwordless login
(this is the better way!), you could try using expect. Your expect script
though, would have to contain the password.
From: Popeanga Marian [mailto:firstname.lastname@example.org]
Sent: Thursday, November 20, 2003 6:40 AM
Subject: ssh read password from stdin
I am working on a software witch needs to create a tunnel with ssh.
The ssh connection will be lunched as a separate process from the main
application. I need to be able to send the password to stdin.
How can i workaround this issue, thinking from a programmer perspective ?