CentOS 7/8 SSH Installation & Configuration | IP CORE NETWORKS

Опубликовано: 23 Июнь 2021
на канале: IP Core Networks
8,438
like

Installing and Configuring OpenSSH on CentOS 7/8
https://netelastic.com.pk/consultancy/
SSH software packages are included on CentOS by default. However, if these packages are not present on your system, easily install them by completing Step by Step.

Step 1: Install OpenSSH Server Software Package

Enter the following command from your terminal to start the installation process:


sudo yum install openssh-server openssh-clients


Step 2: Starting SSH Service

To start the SSH daemon on the OpenSSH server:

sudo systemctl start sshd

Make sure port 22 is opened:
netstat -tulpn | grep :22

Step 3: Check sshd status

Check the status of the SSH daemon:

sudo systemctl status sshd


To stop the SSH daemon enter:

systemctl stop sshd

Step4:OpenSSH Server Configuration


Properly configuring the sshd configuration file hardens server security. The most common settings to enhance security are changing the port number, disabling root logins, and limiting access to only certain users.

To edit these settings access the /etc/ssh/sshd_config file:

sudo vim /etc/ssh/sshd_config
sudo nano /etc/ssh/sshd_config

Step5:

firewall-cmd --zone=public --add-service=ssh –permanent

or

sudo semanage port -a -t ssh_port_t -p tcp 8089

firewall-cmd --add-port=8089/tcp --permanent
firewall-cmd --reload

Step 5: Enable OpenSSH Service

Enable SSH to start automatically after each system reboot by using the systemctl command:
___________

sudo systemctl enable sshd

sudo systemctl restart sshd
service iptables restart
https://ipcorenetworks.blogspot.com/2...
fb:   / ipcorenetworks  
#centos #linux #ssh #ubuntu


Смотрите видео CentOS 7/8 SSH Installation & Configuration | IP CORE NETWORKS онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь IP Core Networks 23 Июнь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8,438 раз и оно понравилось like людям.