diff --git a/install/common.sh b/install/common.sh index 70c1e38..2427c3d 100755 --- a/install/common.sh +++ b/install/common.sh @@ -12,7 +12,7 @@ fi # Packages sudo apt update -sudo apt upgrade +sudo apt upgrade -y sudo apt install -y \ openssh-server \ git \ @@ -40,8 +40,8 @@ chsh -s /usr/bin/fish # SSH -read -p "Please set sshd port to 222" -sudo nano /etc/ssh/sshd_config +sed -i 's/#Port 22/Port 222/' +sudo systemctl restart sshd ssh-keygen -t ed25519 ln -sr authorized_keys ~/.ssh/authorized_keys