You are not logged in.

#1 2013-07-12 06:50:00

tlamer
Member
From: Bratislava, Slovakia.
Registered: 2010-02-04
Posts: 42

[solved] systemd listens on port 22

Hi,

i have played with iptables yesterday and after some experimenting i found out that i could ssh to my machine. When i installed my system i assured myself that sshd.service is disabled and it still is.

I've examined output of ps aux but no sshd was there. Then i tried lsof:

lsof -nPi :22
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd   1 root   14u  IPv6   9609      0t0  TCP *:22 (LISTEN)

So systemd listens on port 22 and spawns sshd if there is incoming connection.

Is this the default behavior?  If not, and I did not any change in sshd or systemd configuration does it mean that my computer was somehow compromised? Im going to find out how to disable this behavior.

Thanks in advance for any response.

Last edited by tlamer (2013-07-12 06:55:25)


:wq

Offline

#2 2013-07-12 06:54:43

tlamer
Member
From: Bratislava, Slovakia.
Registered: 2010-02-04
Posts: 42

Re: [solved] systemd listens on port 22

So, ive found out that sshd.socket was enabled and this was the cause. I got it now. smile

Last edited by tlamer (2013-07-12 06:55:47)


:wq

Offline

Board footer

Powered by FluxBB