The first one:
01 If you want to change the default port of SSH (22), then you only need to modify: Port 22 in /etc/ssh/sshd_config, here change 22 to yourself Set the port on the line, but do not set the same port as the existing one, in case of unknown consequences.
02 If you want to limit the IP of SSH login, you can do the following:
First: modify /etc/hosts.deny, add sshd:ALL in it >
Then: Modify: /etc/hosts.allow, set the following settings: sshd: 192.168.0.241
This will limit the IP of only 192.168.0.241 via SSH Log in to the Linux machine. Of course, as a server, I don't have gnome and KDE installed, and many don't install it, which increases the security factor.
Second:
First modify the configuration file
vi /etc/ssh/sshd_config
Found# Port 22, here is the default use of 22 ports, modified as follows:
Port 22
Port 50000
Then save and exit
Execute /etc/init.d/sshd restart
This way the SSH port will work with both 22 and 50000.
Edit the firewall configuration now: vi /etc/sysconfig/iptables
Enable 50000 port.
Execute /etc/init.d/iptables restart
Now use the ssh tool to connect to port 50000 to test if it is successful. If the connection is successful, edit the sshd_config settings again and delete the Port22 inside.
The reason why the two ports are set first, and then the port is closed after the test is successful, in the process of modifying the conf, in case there is an unknown situation such as dropped calls, broken networks, misoperations, etc. At that time, it is also possible to connect to another machine through the connection to avoid the connection, and it is necessary to send someone to the machine room, which makes the problem more complicated and troublesome.
In the adb shell terminal, enter ps, you can view all current process status of the phone, where the
First, the Linux system startup process About the Linux system startup process we can divide into th
For systems on the Internet, it is important to be clear about the situation: the network is not se
With Windows for a long time, it will inevitably start to lack freshness, so some people will try to
Linux multi-cpu load balancing - thread migration
In-depth study on Lvs scheduling strategy
Decompression method of cpio.gz file under linux
Linux text processing commands (sort and uniq)
Linux kernel upgrade basic tutorial
Sed mode space and reserved space
The meaning of X-Cache and X-Cache-Lookup in Squid
Detailed IPTABLES configuration under Linux
The Linux ls command parameters are detailed
Quick Shutdown/Restart Win 8 Practical Tips
How to do when Win7 system opens webpage very slowly
Samsung claims that Win8 is not as good as Vista
Win7 system prompts offline can not open the page how to do
Demonstration of running a virtual Win7 system on a Win8 computer
Win7 boot desktop bottom right corner jumps out of the USB root hub prompt solution
Win10 Consumer Preview opens Cortana in early 2015.
What should I do if there is a problem with the Win8 application?
How to download audio from Himalayan FM? Himalayan FM download audio method introduction