In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to open SSH login in Ubuntu. Many people may not know much about it. In order to let everyone know more, Xiaobian summarized the following contents for everyone. I hope everyone can gain something according to this article.
0x00 Preface
After a new installation of ubuntu, the default is not to support ssh login. But ssh login we usually use. So install the SSH service.
The following is the installation process, if there is any objection, please correct me.
0x01 Install ssh
Here is the openssh series tool
Update system tools and dependencies, execute sudo apt-get update;
Execute the installation command sudo apt-get install opensh-server opensh-client and wait for the installation to complete.
0x02 Start ssh
Check to see if ssh is running and execute sudo ps -e| grep ssh, if nothing is displayed, is not running ssh service. Otherwise, the word sshd appears, indicating that the ssh service is running.
If ssh is not running, use the command sudo service ssh start.
#Start
/etc/init.d/ssh start
#Stop
/etc/init.d/ssh stop
#Restart
/etc/init.d/ssh restart
#Use the service command
#Start
``sudo service ssh start``
#Stop
``sudo service ssh stop``
#Restart
``sudo service ssh restart``
At this point,ssh is installed and running, and you can connect using the ssh client. But now it's disconnected.
SSh login will prompt SSh service refused to connect, how to break, please look down.
0x03 Modify configuration file
The requested URL/etc/ssh/sshd_config was not found on this server.
Open the configuration file with a name:gedit /etc/ssh/sshd_config;
Comment out the PermitRootLogin without out-password line in the configuration file;
Add a new line:PermitRootLogin yes;
Save configuration file and restart SSH service.
0x04 End
After doing the above operation, no other accidents, you can successfully log in to the host using ssh.
After reading the above, do you have any further understanding of how to open SSH login in Ubuntu? If you still want to know more knowledge or related content, please pay attention to the industry information channel, thank you for your support.
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.