Getting Started
# Update system
Check update system
dnf -y update
# Change root password and Add user
Change root password
passwd
Add a new user
adduser {user}
Set password for a user
passwd {user}
Add user to sudoers
usermod -aG wheel {user}
# Login by public key
Edit ssh config file
sudo nano /etc/ssh/sshd_config
Add login by public key setting
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
Restart sshd service
sudo systemctl restart sshd
Create .ssh folder
mkdir ~/.ssh
Generate ssh keygen
ssh-keygen -t ed25519 -C "{comment}"
Create authorized file
touch ~/.ssh/authorized_keys
Add content public key to authorized file
ssh-ed25519 {public key content}
Assign permission for ssh
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub
chmod 600 ~/.ssh/authorized_keys
# Set language for server
Check current language
localectl
Check list language supported
localectl list-locales
Set main language
sudo localectl set-locale LANG=en_US.UTF-8
# Config SELinux
Check SELinux status
sestatus
Edit SELinux config file
sudo nano /etc/selinux/config
Disable SELinux if it is necessary
SELINUX=disabled
Reboot system
sudo reboot