22 lines
422 B
Bash
22 lines
422 B
Bash
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
apk add libressl
|
|
apk add open-vm-tools
|
|
rc-update add open-vm-tools
|
|
/etc/init.d/open-vm-tools start
|
|
|
|
cat >/usr/local/bin/shutdown <<EOF
|
|
#!/bin/sh
|
|
poweroff
|
|
EOF
|
|
chmod +x /usr/local/bin/shutdown
|
|
|
|
sed -i "/#PermitRootLogin/c\PermitRootLogin yes" /etc/ssh/sshd_config
|
|
sed -i "/#PasswordAuthentication/c\PasswordAuthentication yes" /etc/ssh/sshd_config
|
|
mkdir ~/.ssh
|
|
# copy ssy key ?
|
|
|
|
/etc/init.d/sshd restart
|