Aktionen
Setup ssh » Historie » Revision 1
Revision 1/2
| Weiter »
Jeremias Keihsler, 10.09.2020 09:43
Configure ssh-server on a host¶
Requirements¶
To configure ssh you will need the following:- a installed and supported operating system (e.g. CentOS 8.x)
- 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
yum 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 etwa 4 Jahren aktualisiert · 1 Revisionen