SoracomSA
Posts: 5
Joined: Fri Jan 25, 2019 5:32 pm

Network-Manager overrides SSH

Tue Feb 05, 2019 7:14 pm

Hello,

Not sure if this is possible, but here's my scenario -

1. Raspberry Pi Zero running Stretch Light
2. Setting up using headless WiFi method
--I add the ssh.txt and wpa_supplicant files to the boot directly, boots up great, auto connects to Wifi no problem, I can SSH right in. GREAT
3. Now I need to setup a USB Modem, that requires Network Manager
--I install Network Manager (apt-get install network-manager)...and here's where the problem occurs.

After Network Manager installs, it kills my SSH connection and I can't get back in (but remains connected to Wi-Fi). Unless I connect a monitor and keyboard to the Pi, however this is what I need to avoid.

Anyone know of a way to prevent Network Manger from overriding the SSH connection in this scenario?

tempest766
Posts: 105
Joined: Sun Jan 07, 2018 3:44 pm

Re: Network-Manager overrides SSH

Tue Feb 05, 2019 7:33 pm

If network manager is blitzing the ssh daemon then it's probably due to nm changing the IP address or sshd not listening on the all interfaces.

1) Carefully look over your sshd configuration to make sure its listenning on all interfaces
2) maybe hook an sshd restart to the nm configuration of your usb modem

SoracomSA
Posts: 5
Joined: Fri Jan 25, 2019 5:32 pm

Re: Network-Manager overrides SSH

Tue Feb 12, 2019 10:41 pm

Thanks for the help tempest766! The IP address was changing. I just had to use a wifi scanner to verify the IP and reconnect.

Return to “Troubleshooting”