Simplify common setup
This commit is contained in:
parent
74bcafc31b
commit
088fd4100f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue