View Linux SSH service information and operational status

Source: Internet
Author: User
Tags ssh server

There are many articles on the SSH server configuration, such as the SSH service configuration under Linux, and here are just a few common commands to view information about the SSH service.

Rpm-qa | grep SSH can see the system in the SSH installation package

RPM-QL openssh-3.5p1-6 View the installation package installation information (such as installation path, configuration file, etc.) ps-e | grep ssh to see if the SSH service is running, if there is, you can see something similar to the following: 2254? 00:00:00 sshd This proves that SSH is already running, and that the process named sshd is not running, you can run it with the following command:      Root]#/etc/rc.d/init.d/sshd Startroot] #service sshd start and look at the network connection for this SSH service: root] #netstat-NTLP If you see the following: TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 22109/sshd This indicates that sshd is working properly if the client (Securcrt,putty, etc.) is not connected to the , try shutting down the firewall try: Service iptables stop

View Linux SSH service information and operational status

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.