Getting Started
# Update system
Check update system
dnf -y update# Change root password and Add user
Change root password
passwdAdd 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_configAdd login by public key setting
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keysRestart sshd service
sudo systemctl restart sshdCreate .ssh folder
mkdir ~/.sshGenerate ssh keygen
ssh-keygen -t ed25519 -C "{comment}"Create authorized file
touch ~/.ssh/authorized_keysAdd 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
localectlCheck list language supported
localectl list-localesSet main language
sudo localectl set-locale LANG=en_US.UTF-8# Config SELinux
Check SELinux status
sestatusEdit SELinux config file
sudo nano /etc/selinux/configDisable SELinux if it is necessary
SELINUX=disabledReboot system
sudo reboot