谁能解释这种行为?我正在尝试通过 SSH 连接到我的树莓派,并出现无法解析主机名错误。当我 cd 到我的主目录时,它们似乎消失了。更奇怪的是我使用 cd ~ 在我的主目录中启动
sstan@STEVEN-PC ~
$ ssh pi@raspberrypi
ssh: Could not resolve hostname raspberrypi: Name or service not known
sstan@STEVEN-PC ~
$ cd ~
sstan@STEVEN-PC ~
$ ssh pi@raspberrypi
ssh: Could not resolve hostname raspberrypi: Name or service not known
sstan@STEVEN-PC ~
$ cd /home/sstan/
sstan@STEVEN-PC ~
$ ssh pi@raspberrypi
Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l