Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Ubuntu open the ssh service

2025-04-13 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article analyzes "how Ubuntu opens the ssh service". The content is detailed and easy to understand. Friends who are interested in "how Ubuntu opens the ssh service" can follow the editor's train of thought to read it slowly and deeply. I hope it will be helpful to you after reading. Let's follow the editor to learn more about "how Ubuntu opens ssh services".

Update Ubuntu Feed

Open the "terminal window" and enter "sudo apt-get update". The terminal window can use the search file terminal under the graphical interface.

Install the ssh server

Ubuntu has a ssh client installed by default, but no server

Open the Terminal window and enter "sudo apt-get install openssh-server"

Check to see if the ssh service starts

Open the Terminal window and enter "sudo ps-e | grep ssh"

Sshd appears, indicating that the ssh service has been started.

Modify the configuration file using gedit

Sudo gedit / etc/ssh/sshd_config

PermitRootLogin without-password "plus" # "comment out, with this sentence, a root account with a password cannot be logged in through ssh.

Add "PermitRootLogin yes", which allows root users to log in

Change the password of root account

Sudo pwsswd root

Sudo service ssh start / / start the ssh service

Sudo service ssh restart / / restart the ssh service

So much for sharing about how Ubuntu opens the ssh service. I hope the above content can improve everyone. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report