Auto-install
This commit is contained in:
parent
6bb375e6f2
commit
5bfbfbc696
1 changed files with 2 additions and 2 deletions
4
setup.sh
Normal file → Executable file
4
setup.sh
Normal file → Executable file
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue