There was an error while loading. Please reload this page.
1 parent 93763bf commit 03fe51eCopy full SHA for 03fe51e
gce-enable-ssh.sh
@@ -12,7 +12,7 @@ sudo /etc/init.d/ssh reload
12
echo "adding user '$1'"
13
sudo adduser $1 --gecos "First Last,RoomNumber,WorkPhone,HomePhone" --disabled-password
14
15
-PASSWD=`openssl rand -base64 8`
+PASSWD=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 12 | head -n 1`
16
echo "setting user password to: $PASSWD"
17
echo "$1:$PASSWD" | sudo chpasswd
18
0 commit comments