You can use Expect to ssh to the remote hosts. This also lets you easily automate the (probably interactive) password-reset process.
In short:
- ssh to the host using Expect
- run passwd
- When asked for the password, send it through Expect
- Done.
In reply to Re: Reset unix passwords via Perl?
by elTriberium
in thread Reset unix passwords via Perl?
by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |