Hi Jaydeep,

what happens when you run "ssh root@'" in the host you're trying to run your test program? My guess is that it will ask for confirmation of the host key and/or a password.

You probably will have to enable password-less login via ssh for the user that will run the client program by adding the user's public key to "root@".