Created
December 11, 2019 18:22
-
-
Save rondefreitas/fb6bad76f6b24abccd44d0a65506f7ed to your computer and use it in GitHub Desktop.
HDInsight Change SSH Password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
USER=$1 | |
PASS=$2 | |
usermod --password $(echo $PASS | openssl passwd -1 -stdin) $USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment