Simplify common setup
This commit is contained in:
parent
74bcafc31b
commit
088fd4100f
|
@ -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
|
||||||
|
|
Reference in a new issue