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