- Documentation
Elastic Compute Service
Elastic Compute Service
Troubleshooting
Remote log in issue
SSH log in issue
Solution for SSH start failure
SSH log in issue
Solution for SSH start failure
Solution for SSH start failure
This topic describes how to troubleshoot and resolve the issue where the SSH service fails to start even though no error messages are displayed when you use the service or systemctl command to start it in a Linux instance environment.
Causes
This issue is usually caused by an abnormal configuration of the PATH environment variable or the removal of files related to the SSH package.
Procedure
- Execute the following command to check whether the environment variable configuration is specified as expected.
- Normally, information similar to the following is returned. This value is the default value of the PATH environment variable.
- If other information (not the default value) is returned, the environment variable is altered from its default. Execute the following command to reset the environment variable.
- Execute the following command to find and confirm the path of the SSHD program. Then, determine whether files related to the SSH software package are removed.
- If the output shows information similar to the following, the default path of the SSHD program exists (the files exist). Skip the subsequent operations.
- If no similar information is returned after you execute the find / -name sshd command, the files do not exist. Continue with the subsequent operations.
- Execute the following command to reinstall the SSH package.
- Execute the following command to restart the SSH service.
- Execute the following command to view the SSH service status.
- If the following output is displayed, the SSH service is running.
-
Last updated: 2026.06.18 17:49:51