Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ using the ssh command to check the socket / Network Connections     - Linux file permissions and access modes (Linux)

- Java eight new features 8 (Programming)

- Install Java 8 on Ubuntu using PPA (Linux)

- Linux performance optimization features Tuned and ktune (Linux)

- Examples of Python any parameters (Programming)

- How screenshots from the Linux command line (Linux)

- MySQL high availability cluster fragmentation of deployment uses Cobar (Database)

- Linux compiler installation Redis (Database)

- shell script: a key to install LAMP, LNMP script (Server)

- Use ARChon runtime environment to run Android apps on Ubuntu (Linux)

- Install Xshell on Mac OS X (Linux)

- Linux find command usage practices (Linux)

- The sublime into IDE (Linux)

- VSFTPD Security (Linux)

- Eclipse distributed management using GitHub project development (Linux)

- HTTPS and SSH and use the difference between the way: Git User's Manual (Linux)

- Linux to achieve a simple cp command (Linux)

- Ubuntu users how to install the latest Nvidia graphics drivers (Linux)

- Linux firewall Iptables study notes (Linux)

- Linux, Chrome browser font settings beautification (Linux)

  using the ssh command to check the socket / Network Connections
  Add Date : 2017-08-31      
  Ss is part of the iproute2 package (control TCP / IP traffic and network tools). iproute2 goal is to replace the previous standard configuration for network interfaces, routing tables and ARP tables Unix network management tools (often referred to as "net-tools"). ss socket tool used to derive statistics, it can be displayed with netstat similar information, and can display more TCP and state information. Because it gets information directly from kernel space, it will be faster. ss operation and netstat like, so that it can be easy to replace netstat.

And the use of common options

ss and netstat like, has been established by default it will show an open connection to the list of non-listening TCP sockets. And you can use the following options to filter the output:

-n - Do not attempt to resolve the service name.
-r - to try to resolve numeric address / port.
-a - Displays all sockets.
-l - Display listening sockets.
-p - Display Use this socket's process.
-s - Print statistics
-t - show only TCP sockets.
-u - display only UDP sockets.
-d - displays only DCCP socket
-w - show only RAW sockets.
-x - display only Unix domain sockets
-f FAMILY - FAMILY display type socket. Currently supports the following family: unix, inet, inet6, link, netlink.
-A QUERY - the socket list to list, separated by commas. Recognizes the following identifiers: all, inet, tcp, udp, raw, unix, packet, netlink, unixdgram, unixstream, packetraw, packetdgram.
-o STATUS - Lists the specified socket is
ss command example

1. Display all the TCP port and use their processes:

# Ss -tnap

2. You can use the -4 flag to display IPv4 links, -6 flag to display IPv6 links, such as:

# Ss -tnap6
ss tnap6

3. With the above behaviors, you just use u instead of t will show all open UDP port.

# Ss -unap

4. You can use the -s flag to print a variety of useful statistics:

# Ss -s

5. You can use the -o flag to check the links to all different states, for example, to display all connections have been established.

# Ss -tn -o state established -p
- Linux server network penetration testing (Linux)
- Linux System Getting Started Tutorial: Five image processing software (Linux)
- Linux operating system, the internal and external security overview (Linux)
- Using Python multithreaded mistakes summary (Programming)
- Linux with Windows Explorer as a security system (Linux)
- Debian 8 Jessie install LAMP server tutorial (Server)
- MySQL remote connection settings (Database)
- Ubuntu under VirtualBox virtual machine serial port settings (Linux)
- Let Mac OS X dedicated high-speed mobile hard disk can also be read in Linux (Linux)
- CentOS / RHEL 6 was repeated prohibited under the SNMP connection log (Server)
- MySQL root password reset under CentOS (Database)
- Let OpenCV face detection score output codes (Programming)
- Java Learning: elegant string (Programming)
- Oracle bug Ora-04043 (Database)
- Nginx Performance Tuning Guidelines (Server)
- The difference between VMware virtual machine network mode (Linux)
- Oracle Client + PL SQL Developer enables remote access to the Oracle database (Database)
- MongoDB 3.2 to upgrade from 3.0.7 (Database)
- Usage logs Python library (Programming)
- Use PDFBox parse PDF file (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.