Redirecting to /bin/systemctl start ssh.service Failed to start ssh.service: Unit ssh.service not found.
时间: 2023-10-23 09:27:48 浏览: 285
This error message indicates that the SSH service is not installed on your system or has been removed. To install SSH service on your Linux system, you can follow these steps:
1. Open a terminal window on your Linux system.
2. Update the package list by running the following command:
```
sudo apt-get update
```
or
```
sudo yum update
```
3. Install the SSH service by running the following command:
```
sudo apt-get install openssh-server
```
or
```
sudo yum install openssh-server
```
4. Once the installation is complete, start the SSH service by running the following command:
```
sudo systemctl start ssh
```
5. To enable the SSH service to start at boot time, run the following command:
```
sudo systemctl enable ssh
```
After completing these steps, you should be able to connect to your Linux system using SSH.
阅读全文