Changing Passwd on Many servers that is not NIS

Hi Expert,

I have environment where password is locally managed, not NIS, not LDAP, not Centrally managed.

In order to access to this environment I have to use Jump Box, and only from jumpbox I can login to every host. I can't login direct from inside one host within that environment to the other, only from that Jump Box is allowed.

Now I have 60 Servers, how do I change my login passwd via script if any towards all the servers. RSH is not enable, only SSH.

Thank you.
Reggy

Wrap your script around this command:

ssh loginsudouserid@hostname.domain.com  'echo "targetuserid:newpassword"  |  /usr/bin/sudo /usr/sbin/chpasswd';