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.

1 installation

Apt-get Install Openssh-server

2 when finished, check that SSH server is started:

Ps-e | grep ssh

If you only have:

Ssh-agent

Description does not start the server

Can be started manually:

Sudo/etc/init.d/ssh start

or restart Ubuntu

3 can now be connected using the putty

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, and if so, you can see something similar to the following:2254? 00:00:00 sshd This proves that SSH is already running, the process named sshd if not running, can be run by the following command: root]#/etc/rc.d/init.d/sshd startroot] #service ssh start and look at the network connection of this SSH service : Root] #netstat-NTLP If you see something like this: TCP 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 22109/s SHD This indicates that sshd is already working properly, if the client (Securcrt,putty, etc.) is not connected, 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.