The password is correct as it is the same password which works smoothly for all the successful attempts. Shouldn't it work for a failed attempt too?
There is no such other server which is listening on the same address.
Also, I am creating these sftp connection objects from a script, which runs as a daemon/background job. And am invoking 10 such jobs or gearman worker threads. These worker threads listen to a webservice call. Whenever, there is a webservice call, one of the available worker threads serves the request, downloads the file from the remote server and does some processing.
do you see any issue with spawning such number of worker threads which create the sftp connection objects? Please let me know.