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 # Packages
sudo apt update sudo apt update
sudo apt upgrade sudo apt upgrade -y
sudo apt install -y \ sudo apt install -y \
openssh-server \ openssh-server \
git \ git \
@ -40,8 +40,8 @@ chsh -s /usr/bin/fish
# SSH # SSH
read -p "Please set sshd port to 222" sed -i 's/#Port 22/Port 222/'
sudo nano /etc/ssh/sshd_config sudo systemctl restart sshd
ssh-keygen -t ed25519 ssh-keygen -t ed25519
ln -sr authorized_keys ~/.ssh/authorized_keys ln -sr authorized_keys ~/.ssh/authorized_keys