Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not start the SSHD on openSUSE 15.1 WSL #4815

Closed
ghost opened this issue Jan 13, 2020 · 7 comments
Closed

Can not start the SSHD on openSUSE 15.1 WSL #4815

ghost opened this issue Jan 13, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Jan 13, 2020

Fairly new to the WSL.

Windows 10 Pro 1909 build 18363.535.

Installed opensuse leap 15.1 from windows store today and trying to start SSH server on the opensuse WSL so I do not have to use CMD as the console...But run into errors below:

user@LAPTOP:~$` sudo systemctl start sshd
[sudo] password for root:
Failed to connect to bus: No such file or directory
user@LAPTOP:~$ sudo /etc/init.d/dbus start
sudo: /etc/init.d/dbus: command not found
user@LAPTOP:~$ 
user@LAPTOP:~$ 
user@LAPTOP:~$ sudo mkdir -p /run/dbus
user@LAPTOP:~$ sudo dbus-daemon --system
user@LAPTOP:~$ 
user@LAPTOP:~$ 
user@LAPTOP:~$ sudo systemctl start sshd
Failed to start sshd.service: Launch helper exited with unknown return code 1
See system logs and 'systemctl status sshd.service' for details.
user@LAPTOP:~$ sudo systemctl status sshd.service
Failed to get properties: Launch helper exited with unknown return code 1
user@LAPTOP:~$ 

Tried to search for /var/log/messages but no such file...

@therealkenc
Copy link
Collaborator

therealkenc commented Jan 13, 2020

/dupe #1579 et al LZ #994. You want sudo service ssh start (notwithstanding message).

@ghost
Copy link

ghost commented Jan 13, 2020

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost added the duplicate label Jan 13, 2020
@ghost
Copy link

ghost commented Jan 13, 2020

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@rescenic
Copy link

Use sudo /usr/sbin/sshd

@anlexN
Copy link

anlexN commented Sep 22, 2020

i also have this issue, so how to solve? i can not understand your dup issue.

@ErSoul
Copy link

ErSoul commented May 20, 2021

I don't get it. How is this solved? Which is the duplicated thread (open)?

I'm on openSUSE 15.2

@rescenic
Copy link

Unless you are using Windows Insider Dev Channel Build 21286 or newer (you can specify command launch at boot: https://docs.microsoft.com/en-us/windows/wsl/release-notes);
Here is a little guide for sshd to run after signing in to Windows:
https://github.com/rescenic/autossh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants