Get the App
SLTechnology News&Howtos  ›  Development  › 

How does Ubuntu open the ssh service

Shulou Source: shulou.com Published: 2022-06-02 00:41:33 10月04日 Update

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!

Tags: Services terminals input content passwords files knowledge follow this sentence learning updating login interests graphics customers clients ideas easy to understand more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple vpn Shulou Information OPPO Reno macOS