socket programming

Hi,

I am trying to connect to more than 60 servers to perform some actions remotely. for this I am using ssh2. But its taking lot of time.

Though i am running the command in background, still its taking long time to execute..

Any one let me know can we use sockets instead of ssh2 for copying or doing some actions on remote machines.

SSL Handashake of course is som kind of overhead, but depending on the job you're running this schould not be the biggest part. And 60 SSL Handsakes in paralell should be completed in a cuple of seconds. if not you may have some other issues.

You can use unsecure sockets to avoid ssl handshaking but you will pay the small improvement with a signifikant decrease of security.

if yout jobs are really running long you may have another bottleneck f.e. network bandwidth

Do the actions work at an acceptable speed when you just do them on a single host? Can you show us what you do?

Also you can check out capistrano.
Capistrano: Home
Usually used for deployments but can easily be used for server administration.