Archived
1
0
Fork 0

Simplify common setup

This commit is contained in:
Casper V. Kristensen 2022-05-10 01:25:48 +02:00
parent 74bcafc31b
commit 088fd4100f

View file

@ -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