WSL ubuntu Error: System has not been booted with systemd as init systemWSL ubuntu Error:

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x