You are not logged in.
Hello Guys
When i disconnect from any type of VPN in Network Manager my sshd service stopped.
Here are few logs:
Sep 26 19:59:38 localhost.localdomain pppd[30583]: Sent 2262 bytes, received 234 bytes.
Sep 26 19:59:38 localhost.localdomain NetworkManager[420]: Sent 2262 bytes, received 234 bytes.
Sep 26 19:59:38 localhost.localdomain systemd[1]: Stopping OpenSSH Daemon...
Sep 26 19:59:38 localhost.localdomain sshd[30627]: Received signal 15; terminating.
Sep 26 19:59:38 localhost.localdomain systemd[1]: Stopped OpenSSH Daemon.
Sep 26 19:59:38 localhost.localdomain NetworkManager[420]: MPPE disabled
Sep 26 19:59:38 localhost.localdomain NetworkManager[420]: Connection terminated.
Sep 26 19:59:38 localhost.localdomain pppd[30583]: MPPE disabled
Sep 26 19:59:38 localhost.localdomain NetworkManager[420]: <info> [1506445178.3762] vpn-connection[0x23ff4b0,1b27239a-8e30-41e0-baaa-556ba31f8cf0,"reliablesite",0]: VPN plugin: state changed: stopping (5)
Sep 26 19:59:38 localhost.localdomain pppd[30583]: Connection terminated.
Sep 26 19:59:38 localhost.localdomain NetworkManager[420]: <info> [1506445178.3763] vpn-connection[0x23ff4b0,1b27239a-8e30-41e0-baaa-556ba31f8cf0,"reliablesite",0]: VPN service disappeared
Sep 26 19:59:38 localhost.localdomain kdeinit5[5758]: "No such interface 'org.freedesktop.DBus.Properties' on object at path /org/freedesktop/NetworkManager/ActiveConnection/13"
Sep 26 19:59:38 localhost.localdomain baloo_file[5877]: org.kde.baloo: Found removable storage volume for Baloo undocking: "/org/kde/solid/udev/sys/devices/virtual/net/ppp0"
Sep 26 19:59:38 localhost.localdomain kdeinit5[5758]: networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "AllDevices"
Sep 26 19:59:38 localhost.localdomain kdeinit5[5758]: networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "Devices"
Sep 26 19:59:38 localhost.localdomain org_kde_powerdevil[5885]: networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "AllDevices"
Sep 26 19:59:38 localhost.localdomain org_kde_powerdevil[5885]: networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "Devices"
Sep 26 19:59:38 localhost.localdomain plasmashell[5881]: networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "AllDevices"
Sep 26 19:59:38 localhost.localdomain plasmashell[5881]: networkmanager-qt: void NetworkManager::NetworkManagerPrivate::propertiesChanged(const QVariantMap&) Unhandled property "Devices"
Sep 26 19:59:38 localhost.localdomain pppd[30583]: Exit.
I tried sshd.service and sshd.socket. Both stopped after vpn disconnect
# systemctl status sshd.socket
● sshd.socket
Loaded: loaded (/usr/lib/systemd/system/sshd.socket; enabled; vendor preset: disabled)
Active: inactive (dead) since Tue 2017-09-26 19:59:36 EEST; 17h ago
Listen: [::]:22 (Stream)
Accepted: 3; Connected: 0
Sep 26 19:35:15 localhost.localdomain systemd[1]: Stopping sshd.socket.
Sep 26 19:35:15 localhost.localdomain systemd[1]: Listening on sshd.socket.
Sep 26 19:59:36 localhost.localdomain systemd[1]: Closed sshd.socket.
cat /etc/systemd/system/sockets.target.wants/sshd.socket
[Unit]
Conflicts=sshd.service
Wants=sshdgenkeys.service
[Socket]
ListenStream=22
Accept=yes
[Install]
WantedBy=sockets.target
Here is the content of /usr/lib/systemd/system/sshd.service. It has "Restart=always" and i supposed that it should help to keep sshd online all the time.
[Unit]
Description=OpenSSH Daemon
Wants=sshdgenkeys.service
After=sshdgenkeys.service
After=network.target
[Service]
ExecStart=/usr/bin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
Is there some special configuration for sshd service & NetworkManager?
Last edited by real_user (2017-09-28 09:46:09)
Offline
Not sure if this is relevant but you need to set your hostname, not doing so can cause all sorts of issues.
Also can you please use code tags instead of quote tags.
Last edited by Slithery (2017-09-27 11:18:52)
Offline
slithery,
Thank you for the reply.
I've set hostname and restarted my PC. But it did not help.
[root@workhost ~]# hostname
workhost
[root@workhost ~]# ping workhost
PING workhost (127.0.0.1) 56(84) bytes of data.
64 bytes from workhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.053 ms
of course I can install monit to watch for the sshd process and restart it....
But i still hope there should be right way to resolve that issue.
Offline