You could use expect for this. But why would you want to?
Chris
>
> From: "J. Bakshi" <[email protected]>
> To: OpenSSH User List <[email protected]>
> Date: 12/10/2009 12:13 PM
> Subject: [Suspected Spam]any way to provide the ssh password from a file
?
> Sent by: [email protected]
>
> Hello list,
>
> Is there any way to provide the ssh password from a file ? There is
> password less login option with the help of public/private key
> combination. But I like to have the password less login by providing
> the key from a file. Is it possible ? My version of ssh is
> "OpenSSH_5.1p1 Debian-8 OpenSSL 0.9.8k 25 Mar 2009"
> Please let me know.