Artix Linux Forum

Init systems => runit => Topic started by: lsj on 24 February 2021, 08:39:04

Title: Cannot start or add sshd on a fresh install [solved]
Post by: lsj on 24 February 2021, 08:39:04
Hi Everyone
Newbie here, but long time arch enthusiast.

I have a fresh new install of artix using runit and everything is working great with the exception of ssh.
It is mean to be a headless server, so really need the ssh up and running.

I have followed the guides around adding a service here: https://wiki.artixlinux.org/Main/Runit
I have also tried re-installing openssh but I am still unable to start or add sshd as a service for some reason.

IMG_4373.jpg
(apologies for the crappy quality)

also nothing in the /run/runit/service directory
I do see ssh installed under /etc

Any help would be highly appreciated, cheers
Title: Re: Cannot start or add sshd on a fresh install
Post by: SGOrava on 24 February 2021, 09:55:20
Code: [Select]
pacman -S openssh-runit

Quote
Installation of services
runit service packages are named package_name-runit and, when installed, will be available in /etc/runit/sv.
Title: Re: Cannot start or add sshd on a fresh install
Post by: lsj on 24 February 2021, 16:10:08
all sorted now, thank you.
Much appreciated :)
Title: Re: Cannot start or add sshd on a fresh install [solved]
Post by: alium on 24 February 2021, 17:05:38
nextime enough read carefully  the wiki ;)  ;D
Title: Re: Cannot start or add sshd on a fresh install [solved]
Post by: lsj on 24 February 2021, 23:13:57
yeah but like I said, I am a noob at this.
And although I did read the above mentioned, it did not "click" for me as I was starting dhcpcd without "-runit" as normal.
So when looking at the /etc/runit/sv and seeing it as "sshd" (like it normally would) I did not figure to call is sshd-runit.

But there you go, you learn something everyday :)
Title: Re: Cannot start or add sshd on a fresh install [solved]
Post by: RIA77 on 15 July 2021, 22:22:56
Sorry, but I can't enable sshd.
 
Quote
ln -s /etc/runit/sv/sshd /run/runit/service/sshd
File exist error.
  I have installed openssh-runit.
 Fresh install of runit.
 Thank you
Title: Re: Cannot start or add sshd on a fresh install [solved]
Post by: RIA77 on 16 July 2021, 10:50:02
I manage to enable firewalld, but not sshd.
Title: Re: Cannot start or add sshd on a fresh install [solved]
Post by: qontinuum on 16 July 2021, 11:34:05
Isn't there already a link named sshd in your /run/runit/service?
Use ls to watch what happens on your filesystem, we can't do it for you