I can do ping 10.84.135.79
or ssh [email protected]
.
But I'm unable to succeed with ping mydevice.local
or ssh [email protected]
.
I'm on macOS, trying to ssh to a Raspberry Pi 4 Model B Rev 1.2.
% ping 10.84.135.79 -ov
PING 10.84.135.79 (10.84.135.79): 56 data bytes
64 bytes from 10.84.135.79: icmp_seq=0 ttl=64 time=23.203 ms
--- 10.84.135.79 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 23.203/23.203/23.203/0.000 ms
% ssh [email protected]
[email protected]'s password:
Linux mydevice 5.4.83-v7l+ #1379 SMP Mon Dec 14 13:11:54 GMT 2020 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Jun 2 13:18:06 2021 from 10.84.135.82
pi@mydevice:~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
pi@mydevice:~ $ cat /etc/dhcpd.conf
cat: /etc/dhcpd.conf: No such file or directory
pi@mydevice:~ $ sudo ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.84.135.79 netmask 255.255.255.240 broadcast 10.84.135.95
inet6 fe80::6065:6ccb:98ab:cd76 prefixlen 64 scopeid 0x20<link>
ether dc:a6:32:9b:11:ca txqueuelen 1000 (Ethernet)
RX packets 174 bytes 37955 (37.0 KiB)
RX errors 0 dropped 4 overruns 0 frame 0
TX packets 260 bytes 43498 (42.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
But:
% ping mydevice.local -ov
ping: cannot resolve mydevice.local: Unknown host
% ssh [email protected] -vvv
OpenSSH_8.6p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/me/.ssh/config
debug1: /Users/me/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/me/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/me/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to mydevice.local port 22.
<nothing happens for hours>
.local
part. and use justping mydevice
.ssh: Could not resolve hostname mydevice: nodename nor servname provided, or not known
andping: cannot resolve mydevice: Unknown host