You are not logged in.

#1 2023-12-01 11:14:46

Jphillips
Member
Registered: 2019-08-23
Posts: 65

How to enable ssh before user is logged in?

I manage a remote machine that has several users, and I'm trying to figure out how to allow me to ssh into the machine before anyone has physically logged in. For example, if I update and restart the machine, I lose ssh axis until someone physically logs in. Is there a way to enable shh login before anyone has logged in? I can't use automatic login for security, so ideally I'd like to have ssh start up immediately when booting.

Any suggestions for how to do this?

Offline

#2 2023-12-01 11:24:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,750

Re: How to enable ssh before user is logged in?

Is this actually an Arch system? Generally just the sshd daemon should be started which should be completely irrelevant to a local user having logged in: https://wiki.archlinux.org/title/OpenSS … management

Offline

#3 2023-12-01 17:37:58

seth
Member
Registered: 2012-09-03
Posts: 51,348

Re: How to enable ssh before user is logged in?

I'll suspect that this is an https://en.wikipedia.org/wiki/XY_problem - the problem isn't ssh but the network and the OP will only establish a wifi carrier w/ a session login.
On a limb: https://wiki.archlinux.org/title/Networ … et_on_boot

Offline

#4 2023-12-04 10:03:55

Jphillips
Member
Registered: 2019-08-23
Posts: 65

Re: How to enable ssh before user is logged in?

Thanks, so yeah, the issue seems to be that the network interface isn't active until the session is logged in. I'll try going back to systemd-networkd and see if that fixes things.

Offline

#5 2023-12-04 11:25:06

seth
Member
Registered: 2012-09-03
Posts: 51,348

Re: How to enable ssh before user is logged in?

This has nothing to do w/ the specific network managing service, you just need to make sure to automatically establish the connection with the boot.

Offline

Board footer

Powered by FluxBB