SSH Problem auth problem

Hi,

Just recently we seem to be getting the following error message relating to SSH when we run the UNIX script in background mode:

warning: You have no controlling tty. Cannot read confirmation.^M
warning: Authentication failed.^M
Disconnected; key exchange or algorithm negotiation failed (Key exchange failed.).^M
FATAL: ssh2 client failed to authenticate. (or you have too old ssh2 installed, check with ssh2 -V)^M

When the script is run in foreground, it all seems to run fine. Does anyone know why this is happening and what the fix is to this.

I have the latest version of SSH installed i.e. 3.2

Your assistance would be appreciated.

thanks
Bud.

What changed? Did it work before in the background? Did you just upgrade to 3.2?