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
Watch video CentOS 7/8 SSH Installation & Configuration | IP CORE NETWORKS online without registration, duration hours minute second in high quality. This video was added by user IP Core Networks 23 June 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 8,438 once and liked it like people.