diff --git a/setup.sh b/setup.sh old mode 100644 new mode 100755 index 585e282..d6a4cb2 --- a/setup.sh +++ b/setup.sh @@ -5,8 +5,8 @@ eval $(grep '^ID=' /etc/os-release) distro=${ID:-unknown} case $distro in debian) - apt update - apt install openssh-server + apt-get update + apt-get install -y openssh-server install -d -m 0700 $HOME/.ssh echo $ssh_key > $HOME/.ssh/authorized_keys echo 'PermitRootLogin prohibit-password' > /etc/ssh/sshd_config.d/root.conf