Guest User

Untitled

a guest
Feb 12th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. WARNING: Your password has expired.
  2. You must change your password now and login again!
  3. Changing password for user dmitresso.
  4. Changing password for dmitresso.
  5. (current) UNIX password:
  6.  
  7. #! /bin/bash
  8.  
  9. username=dmitresso
  10. hostname=aaa
  11. pass=bbb
  12. newpass=ccc
  13.  
  14. sshpass -p "${pass}" ssh -tt -o StrictHostKeyChecking=no ${username}@${hostname}
  15.  
  16. WARNING: Your password has expired.
  17. You must change your password now and login again!
  18. bbb
  19. ccc
  20. ccc
  21. Changing password for user dmitresso.
  22. Changing password for dmitresso.
  23. (current) UNIX password:
Add Comment
Please, Sign In to add comment