Enable ssh for root + set default password
This commit is contained in:
parent
c89a171cb0
commit
184c1192c5
1 changed files with 4 additions and 0 deletions
|
@ -8,4 +8,8 @@ chmod +x /tmp/install_yunohost
|
||||||
rm -f /etc/ssh/ssh_host_*
|
rm -f /etc/ssh/ssh_host_*
|
||||||
apt-get clean
|
apt-get clean
|
||||||
find /var/log -type f -exec rm {} \;
|
find /var/log -type f -exec rm {} \;
|
||||||
|
touch /boot/ssh
|
||||||
|
sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config
|
||||||
|
echo "root:yunohost" | chpasswd
|
||||||
|
chage -d 0 root
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue