Projekt

Allgemein

Profil

Aktionen

Configure ssh-server on a host

Requirements

To configure ssh you will need the following:
  • a installed and supported operating system (e.g. CentOS 9.x)
  • root-access
  • a fast internet connection

Preliminary Note

Some basic information may be found at

Install ssh

usually ssh is installed by default and the service is started up automatically

dnf install openssh-server

Configure ssh

vim /etc/ssh/sshd_config
# Prevent root logins:
PermitRootLogin no

AllowUsers alice bob

PubkeyAuthentication yes
PasswordAuthentication no

after doing some changes you will have to restart the service

systemctl restart sshd.service

ssh-service

systemctl enable sshd.service
systemctl is-enabled sshd.service 

should result in
enabled

Von Jeremias Keihsler vor 8 Monaten aktualisiert · 1 Revisionen