In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
There are many articles about ssh server configuration, such as ssh service configuration under Linux. Here are only some common commands to view ssh service related information.
1 installation
Apt-get install openssh-server
2 after completion, check whether ssh server is started:
Ps-e | grep ssh
If there is only:
Ssh-agent
Indicates that server is not started
You can start it manually:
Sudo / etc/init.d/ssh start
Or restart ubuntu
3 you can now use putty to connect
Rpm-qa | grep ssh can see the ssh installation package in the system
Rpm-ql openssh-3.5p1-6 to view the installation information of the installation package (such as installation path, configuration files, etc.)
Ps-e | grep ssh to check whether the ssh service is running. If so, you can see something like the following:
2254? 00:00:00 sshd
This proves that ssh is already running, and the process is called sshd
If it is not running, you can run it with the following command:
Root] # / etc/rc.d/init.d/sshd start
Root] # service ssh start
Take a look at the network connection of this ssh service:
Root] # netstat-ntlp
If you see the following:
Tcp 0 0 0.0.0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0
This means that sshd has been able to work properly, if the client (SecurCRT,putty, etc.) can not connect, try to turn off fire prevention
Try the wall: service iptables stop
The above article to view the linux ssh service information and running status method is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.