Aktionen
Configure ssh-server on a host¶
Requirements¶
To configure ssh you will need the following:- a installed and supported operating system (e.g. Fedora 32)
- root-access
- a fast internet connection
Preliminary Note¶
Some basic information may be found at- http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-openssh-server-config.html
- http://wiki.centos.org/HowTos/Network/SecuringSSH
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 mehr als 4 Jahren aktualisiert · 1 Revisionen