++viwib2/no pw

This commit is contained in:
Nico Schottelius 2020-12-17 10:01:51 +01:00
parent 5eb3a5d1fe
commit 517ca06b53

View file

@ -42,9 +42,6 @@ if [ $? -ne 0 ]; then
exit 1 exit 1
fi fi
root_password=$(pwgen -1 32)
echo $root_password > ${viwib_hostname}.rootpw
cat <<EOF | ssh -t "root@${viwib_ip}" cat <<EOF | ssh -t "root@${viwib_ip}"
set -x set -x
@ -184,7 +181,6 @@ reboot
EOF EOF
echo "Wireguard public key and id: ${id} ${public_key}" echo "Wireguard public key and id: ${id} ${public_key}"
echo "Root password: ${root_password}"
echo ${public_key} > ${viwib_hostname}.public_key echo ${public_key} > ${viwib_hostname}.public_key
# change to ipv6 # change to ipv6
@ -198,5 +194,3 @@ while ! ping -c5 ${viwib_ip}; do
done done
echo "Wireguard public key and id: ${id} ${public_key}" echo "Wireguard public key and id: ${id} ${public_key}"
echo "Root password: ${root_password}"
echo ${public_key} > ${viwib_hostname}.public_key