Script to change password on linux servers over ssh

后端 未结 17 2733
南方客
南方客 2020-12-08 11:22

We have a number of Red Hat linux servers in our IT environment. I am being asked by my team members to write a script (preferably shell script) to change a user\'s password

17条回答
  •  借酒劲吻你
    2020-12-08 11:34

    An alternative you may want to present to your peers would be to have them use password-less authentication. They'd generate a public/private key pair and register their public key in the ~/.ssh/authorized_keys file on each of the servers they log into.

提交回复
热议问题