I was using exec over TCP to connect to a remote server.i was using send,recv functions to get success/failure of the login on passing username and password.
i was getting a message some thing like on invalid login:
msg:
[compat]: 3004-300 You entered an invalid login name or password.
rexecd: 0826-604 The login is not correct.
But wen i tried to use ssh instead of exec i am getting a message something like:
SSH-1.99-OpenSSH_3.9p1
for both correct as well as wrong login details.is there a way in which my code runs in a similar way as exec even with ssh returning an error msg for wrong login details?