Home  >  Article  >  Operation and Maintenance  >  How to enable ssh service in ubuntu

How to enable ssh service in ubuntu

王林
王林Original
2021-01-13 15:26:1261999browse

How to start the ssh service on Ubuntu: 1. Update the source list; 2. Install openssh-server; 3. Execute the [sudo service ssh start] command.

How to enable ssh service in ubuntu

The operating environment of this article: ubuntu 16.04, thinkpad t480 computer.

(Learning video sharing: linux video tutorial)

Specific method:

1. Update the source list

Open "Terminal Window", enter "sudo apt-get update"-->Enter-->"Enter the administrator password of the currently logged in user"-->Enter, and that's it.

2. Install openssh-server

Input in the terminal: sudo apt-get install openssh-server

3. Check whether the ssh service is started

Open the "terminal window" and enter "sudo ps -e |grep ssh"-->Press Enter-->If there is sshd, it means that the ssh service has been started. If it has not been started, enter "sudo service ssh start"--> Press Enter --> the ssh service will start.

Related recommendations: linux tutorial

The above is the detailed content of How to enable ssh service in ubuntu. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn