You are not logged in.

#1 2019-09-22 15:19:45

hbc2
Member
Registered: 2014-07-26
Posts: 13

[SOLVED] problem enabling sshd.socket

I just built a machine for scratch.  I Iogged in as root and did the following:

# pacman -S openssh
.
.
.
# systemctl enable sshd.socket
Failed to enable unit: Unit file sshd.socket does not exist

The install ran without errors.  I'm rather sure I've done this in the past but it has been awhile since I needed to set ssh up.

Also I tried enabling ssh as a service and that works fine.  Just can't get it going as socket.

Any thoughts would be helpful.  Thanks.

Last edited by hbc2 (2019-09-27 12:58:42)

Offline

#2 2019-09-22 15:27:14

Swiggles
Member
Registered: 2014-08-02
Posts: 266

Re: [SOLVED] problem enabling sshd.socket

Close, just do

systemctl enable sshd.service

Edit: You do not manually enable sockets, but they are handled through service files: "For each socket unit, a matching service unit must exist"
Looks like I am very wrong. Neat. The following post provides an answer. https://www.freedesktop.org/software/sy … ocket.html

Last edited by Swiggles (2019-09-22 15:58:50)

Offline

#3 2019-09-22 15:34:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,574

Re: [SOLVED] problem enabling sshd.socket

You do manually enable sockets, but openssh doesn't ship with a socket anymore.

Offline

#5 2019-09-27 12:58:20

hbc2
Member
Registered: 2014-07-26
Posts: 13

Re: [SOLVED] problem enabling sshd.socket

Thanks,  all.

Offline

Board footer

Powered by FluxBB