You should configure your gateway router's DHCP server to always give your
laptop the same IP address with DHCP, sometimes called lease reservation.
That way, the laptop works when you take it somewhere else, but always gets
the same IP address when you are home. The lease reservations are a happy
middle ground where the devices are dynamically configured and adapt to
their surroundings, but also have a reliably consistent address at home so
other devices can find them. Clever DHCP servers will do DNS resolution of
hostnames as well. Your /etc/hosts entries override DNS and so if they get
misaligned you can expect problems too. Better to rely on DNS than brittle
/etc/hosts entries.

One caveat: Some modern setups do a mac address randomization for privacy
reasons. That is for each SSID, it will pick and record a randomized mac
address to use, so your device can't be so easily tracked across town. This
can sometimes mess with the lease reservations, since they are based on the
mac address. This is mostly a thing on phones, but might also appear on
laptops, not sure.

On Tue, Nov 17, 2026, 12:26 Rich Shepard <[email protected]> wrote:

> On Tue, 17 Nov 2026, Rich Shepard wrote:
>
> > Well, /etc/rc.d/rc.inet1.conf still has eth0 set to the laptop's IP
> address
> > and both /etc/ssh/sshd_config and ~/.ssh/ssh_config have the correct port
> > number.
>
> And, I stopped and restarted sshd before rebooting. It didn't fix the
> problem.
>
> Rich
>

Reply via email to