update set-up-system.sh
This commit is contained in:
@@ -64,6 +64,17 @@ sudo hostnamectl hostname $hostname
|
|||||||
sudo hostnamectl
|
sudo hostnamectl
|
||||||
banner bottom "changed hostname"
|
banner bottom "changed hostname"
|
||||||
|
|
||||||
|
# configure sshd
|
||||||
|
banner top "configuring sshd"
|
||||||
|
sudo tee /etc/ssh/sshd_config << 'EOF'
|
||||||
|
Include /etc/ssh/sshd_config.d/*.conf
|
||||||
|
PermitRootLogin no
|
||||||
|
PasswordAuthentication no
|
||||||
|
KbdInteractiveAuthentication no
|
||||||
|
EOF
|
||||||
|
sudo systemctl reload sshd
|
||||||
|
banner bottom "configuring sshd"
|
||||||
|
|
||||||
# configure dnf
|
# configure dnf
|
||||||
banner top "configuring dnf"
|
banner top "configuring dnf"
|
||||||
sudo tee /etc/dnf/dnf.conf << 'EOF'
|
sudo tee /etc/dnf/dnf.conf << 'EOF'
|
||||||
|
|||||||
Reference in New Issue
Block a user