I've apparently "broken" network access to one of my Debian 'bookworm' systems that run on Raspberry Pi hardware. This resulted from my apparent lack of understanding of details wrt how the various "network tools" operate. The broken system is a "headless" unit; I can no longer make an SSH connection to it. It doesn't even respond to a ping
.
I'm raising this question here in the faint hope someone can explain if there's a way to regain SSH access without making any changes to the system. My current recourse is to remove the NVME SSD, and mount it on another system to correct the configuration error, or connect a monitor & keyboard, but these are difficult due to lack of hardware/cables, etc.
What I did:
Got "fed up" with NM's arcane nmcli
interface, and thought, "there's got to be a better way". I read this page on Debian's website; specifically:
NetworkManager will only handle interfaces not declared in /etc/network/interfaces
I interpreted this to mean that if I declared my WiFi interface (wlan0
) in /etc/network/interfaces
, then NetworkManager
would "step away", and systemd
would use ifup
, ifdown
, etc to manage wlan0
IAW the contents I added to /etc/network/interfaces
. Here's the contents of the interfaces
file I created:
iface wlan0 inet static
address 192.168.1.222
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
After a reboot
I found I could no longer access this system via SSH.
I have two questions:
- Is there any way to regain SSH access without making changes to the system?
- Why did the data I entered in
/etc/network/interfaces
fail to yield a working wifi connection?
nmcli
, you may be interested in learning more about the alternativenmtui
command which is briefly referenced on that Debian page (it's my go-to way of using NetworkManager in the absence of a GUI).*.nmconnection
(viewable vianmcli con show xxx
). Personally, I simply do not need all of that arcane obfuscation in a "network manager" :) What could be simpler than adhcpcd.conf
or aninterfaces
file? 6 or 8 easily comprehensible lines is quite enough for me.