1. Disable root user login ssh
#vi /etc/ssh/sshd_config Change PermitRootLogin yes to PermitRootLogin no Restart sshd service#service sshd restart
At this point, using root login will be prompted to refuse:
login as: [email protected]'s password:Access denied
2, modify ssh default port
vi /etc/ssh/sshd_config find #Port 22 section, here is the default use of 22 ports, modified as follows: Port 22Port 7000 then save and exit restart sshd service #service sshd restart
Note: At this time, you can log in using both port 22 and 7000. This avoids the mistake of debugging (such as not adjusting the corresponding firewall policy after adjusting the port), so you cannot use ssh to log in to the server. Use the ssh client and log in to the test with port 7000. After the error, add a comment on Port 22 in the /etc/ssh/sshd_config configuration file and restart the sshd service.
Linux How to prohibit root from using ssh to log in and modify ssh port
Mono is a cross-platform, open source .NET development framework. Support for Linux systems, which
First talk about my environment: redhat5.4 system, IP address is 192.168.0.10 Debian is 6.0 system,
We have been doing a task in the usual way until we know there is a better way to handle it. As a fo
Now let us use the two digital tubes on the experiment board to do a cycle to display the 00~99 numb
The program does not have MySQL reports on the Linux server. Error
Design and Application of Embedded Linux System
Self-made Linux Pinyin Wubi input method
How to manually clear or refresh the SWAP partition of Linux
Configuring VNCSERVER on RHEL5
Solve the boot problem of Linux and Windows dual system
How to use the SOFTETHER server under the Linux operating system
Establishing GPRS wireless Modem dialing method under Linux system
Eight Ways to Improve the Execution Efficiency of IIS 5.0 Web Servers
Win8 boot speed is slow How to do Win8 boot speed optimization guide
Method for clearing Win8 remote desktop login history traces
How does Win7 system enable/disable wireless router SSID broadcast?
Using Win7 resource monitor, check QQ friends IP
Win7 system prompts "system resources are insufficient" reasons and solutions
WinXP system, trying to install an update from windows update or Microsoft update error or crash
Win10 system installed MacBookPro no sound solution
Windows 8.1 system update download and installation steps
Win7 disables USB interface, Win7 disables group policy, and win7 disables portable devices