Error
WSL ubuntu
$ sudo systemctl start ssh
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
Solution
The error message “System has not been booted with systemd as init system (PID 1). Can’t operate. Failed to connect to bus: Host is down” indicates that WSL does not yet support systemd as the init system. This means that you cannot use the systemctl
command to start or manage services in WSL.
To start the SSH server in WSL, you can use the following command:
$ sudo service ssh start
This command will use the old init.d
style scripts to start the SSH server.
Once the SSH server is started, you can connect to your WSL instance using an SSH client. To do this, you will need to know the IP address of your WSL instance. You can find the IP address using the ip addr
command.
Once you have the IP address of your WSL instance, you can connect to it using an SSH client. For example, to connect to your WSL instance using the OpenSSH client, you would use the following command:
ssh user@<ip_address>
where <user>
is the username of the user account that you want to use to log in to your WSL instance.
- Best DevOps is redefining the DevOps landscape - January 28, 2025
- Unlocking the Power of DevOps: How DevOps Consulting Drives Business Success - January 23, 2025
- DevOps Support: Ensuring Seamless Operations and Continuous Improvement - January 23, 2025