ssh connection failed.

When i was connecting the Solaris system by sftp . i got the following error.
"Warning: child process (/usr/local/bin/ssh2) exited with code 74."
Could any one help, how to fix it ?

Are you using openssh or sun_ssh?
Do you get any errors when connecting to the same box via ssh? When did the child process die - at what stage of the sftp connection were you at?