Note! The Centos version here is 7
step1 Modify /etc/ssh/sshd_config vi /etc/ssh/sshd_config #Port 22 //This line is removed ##Port 20000 //Add this line below
step2 Modify SELinux Use the following command to view the current ssh ports allowed by SElinux: semanage port -l |
Grep ssh
Add 20000 ports to SELinux semanage port -a -t ssh_port_t -p tcp 20000
Then confirm if you add it to semanage port -l |
Grep ssh
If successful, it will output ssh_port_t tcp 20000, 22
step3 restart ssh systemctl restart sshd.service
1. Man I started with the man option because it is the most basic one in many ways. This command is
1. Comparison of several file systems (1) support the file system in the Linux system: Ext2 second e
Basic minimalist directory file after successful production First, the basic boot process of the s
Use yum to install the scheduled task function. The result is prompted:
Copy the code
The code is as follows:
# yum -y install vixie-cron
Loaded plugins: fastestmirror, refresh-pa
Grep yum root 6744 0.0 0.0 103260 900 pts/1 S+ 14:59 0:00 grep yum root 25960 0.0 0.0 0 0 ? Z Sep19
Will the latest Pentium CPU G4560 play League of Legends? What graphics card is best with
How to let Windows also preview PSD image files
Linux operating system crash processing method summary
XP Device Manager application skills three
Commonly used server procurement terminology
Paying $28,000 for 6 IE11 vulnerabilities
Let's talk about ADSL sharing under Win 2003 and Win XP platform.
About the addition and deletion of Microsoft Virtual WiFi Miniport Adapter