Displaying 1 result from an estimated 1 matches for "restartpreventexitstatus".
2017 May 12
0
sshd and problems with network vs NetworkManager
...el7_3.x86_64
and
old openssh-server-6.6.1p1-33.el7_3.x86_6
[root at c7service ~]# diff new_sshd.service old_sshd.service
8c8,9
< Type=notify
---
> Type=forking
> PIDFile=/var/run/sshd.pid
10c11
< ExecStart=/usr/sbin/sshd -D $OPTIONS
---
> ExecStart=/usr/sbin/sshd $OPTIONS
15d15
< RestartPreventExitStatus=255
It changed the Type and it was also added the RestartPreventExitStatus
directove.
The effects I'm noticing are:
1) If using NetworkManager and no ListenAddress entry in sshd_config
--> all ok (listen on ipv4 and ipv6)
2) If using NetworkManager and I put ListenAddress=ip in sshd_conf...