Sunday, December 21, 2025

dns – Altering a bunch’s IP deal with in /and many others/hosts has impact to ping, however not for ssh

My host’s IP deal with adjustments generally, I can not assistance on it. So, I modify the entry in /and many others/hosts:

192.168.1.106   myhost

I can ping it:

PING myhost (192.168.1.106): 56 information bytes
64 bytes from 192.168.1.106: icmp_seq=0 ttl=64 time=66.849 ms
64 bytes from 192.168.1.106: icmp_seq=1 ttl=64 time=7.315 ms
64 bytes from 192.168.1.106: icmp_seq=2 ttl=64 time=13.457 ms

I can merely ssh to it with IP deal with.

However I can’t ssh with host identify:

$ ssh -vvvv myhost
OpenSSH_9.9p2, LibreSSL 3.3.6
debug1: Studying configuration information /Customers/ern0/.ssh/config
debug1: Studying configuration information /and many others/ssh/ssh_config
debug1: /and many others/ssh/ssh_config line 21: embrace /and many others/ssh/ssh_config.d/* matched no recordsdata
debug1: /and many others/ssh/ssh_config line 54: Making use of choices for *
debug1: /and many others/ssh/ssh_config line 58: Making use of choices for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Customers/ern0/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Customers/ern0/.ssh/known_hosts2'
debug1: Authenticator supplier $SSH_SK_PROVIDER didn't resolve; disabling
debug3: channel_clear_timeouts: clearing
debug1: Connecting to myhost port 22.
ssh: Couldn't resolve hostname myhost: nodename nor servname supplied, or not recognized

I discovered no helpful info in verbose ssh output.

I’ll add entry in ~/.ssh/config to specify the IP deal with, however I feel, /and many others/hosts ought to do the job.

I’m utilizing newest MacOS:

$ uname -a
Darwin touchbar.native 24.5.0 Darwin Kernel Model 24.5.0: Tue Apr 22 19:48:46 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8103 arm64 arm Darwin

Does ssh have some hidden mechanism I do not know?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles