diff --git a/masters/alpine/provision.sh b/masters/alpine/provision.sh index c580725..edd7a9e 100644 --- a/masters/alpine/provision.sh +++ b/masters/alpine/provision.sh @@ -12,3 +12,16 @@ cd `dirname $0` apk update apk upgrade + +apk add iproute2-ss openssh-server iptables nftables +rc-update add sshd + +# update password root/root +chpasswd << EOF +root:root +EOF + +#login ssh avec mot de passe +echo "PasswordAuthentication yes" >> /etc/ssh/sshd_config +echo "PermitRootLogin yes" >> /etc/ssh/sshd_config +sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/" /etc/ssh/sshd_config diff --git a/templates/hosts/alpine/nodhcp/provision.sh b/templates/hosts/alpine/nodhcp/provision.sh index 055e32c..ec0a274 100644 --- a/templates/hosts/alpine/nodhcp/provision.sh +++ b/templates/hosts/alpine/nodhcp/provision.sh @@ -13,5 +13,6 @@ cd `dirname $0` if [ ! -f /etc/network/keepdhcp ] then sed -i "s/dhcp/manual/" /etc/network/interfaces -echo "domain $domain\nsearch $domain\nnameserver $ns" > /etc/resolv.conf fi + +echo -e "domain $domain\nsearch $domain\nnameserver $ns" > /etc/resolv.conf