Home / Smart Electronics

Configure SSH connections on CentOS 7

time:2025-01-23 15:02:15 Smart Electronics

CentOS7 allows SSH _Centos7 to configure SSH connections

 Configure SSH connections on CentOS7

1.检查是否安装openssh-server:#yum list installed | grep openssh server

2. Modify sshd_config: #vi /etc/ssh/sshd_config #Port 22 is the default SSH port of Linux, and the custom SSH port must avoid the port used by the system and be greater than 10000 as much as possible, as follows:

3. Modify SELinux. Check the SSH ports allowed by SElinux:

《Configure SSH connections on CentOS 7》 This does not represent the views of this website. If there is any infringement, please contact us to delete it.

Recommend

Ranking

Tech Beyond