Linux cannot ping the port. Telnet is generally used to access the port, and ping is generally just to test connectivity.
How does Linux modify the remote control port? Tell me the simple steps.
Modify the Linux remote port as follows:
First, access linux remotely.
Secondly. The ssh configuration file is located in the file /etc/ssh/sshd_config.
Thirdly, modifying the port is to realize vi/etc/ssh/sshd_config by editing this file.
4. Find the line #port22, and the default port is 22. You can delete the previous # and replace 22 with another port.
5. For example, change the original line to Port43999, so that after restarting ssh, the port of ssh will be 43999.
6. You can see that the system has been listening on port 43999, which is actually ssh service. So you can complete the modification.
Linux port command?
Commands for viewing ports on Linux:
Type 1: lsof-i: port number.
The second type: netstat-nltp|grep port number.
-a: Displays all connection ports and listening ports of this machine.
-n: The form of network IP address, which shows the currently established valid connections and ports.
-r: display routing table information
-s: Display statistics by protocol.
-v: Displays the currently valid connections.
-t: display all TCP protocol connections.
-u: Show all UDP protocol connections.
-i: Displays the status of the auto-configuration port.
-l: Only the service network status with the connection status of monitoring is displayed.
-p: display pid/programname.
Linux port number?
The following are common port numbers for linux:
1.HTTP protocol proxy server common port number: 80/8080/3128/8081/9098.
2. The universal port number is 2. SOCKS proxy protocol server: 1080.
3.FTP (file transfer) protocol proxy server commonly used port number: 2 1.
4.Telnet protocol proxy server public port number: 23
5.HTTP server, the default port number is 80/tcp (Trojan actuator opens this port).
6. https (secureytransfering web pages) server, the default port number is 443/tcp443/udp.
7.Telnet (insecure text transmission), and the default port number is 23/TCP (the port opened by TinytelNetserver).
8.FTP, the default port number is 2 1/tcp (ports opened by Trojans DolyTrojan, Fore, InvisibleFTP, WebEx, WinCrash and BladeRunner).
9.TFTP (TriviaFileTransfer Protocol), the default port number is 69/udp.
10.SSH (secure login), SCP (file transfer) and port number redirection. The default port number is 22/tcp.