ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known

前端 未结 15 2319
忘掉有多难
忘掉有多难 2020-12-12 09:34

I am trying to set up a VPN with a Raspberry Pi, and the first step is gaining the ability to ssh into the device from outside my local network. For whatever re

15条回答
  •  死守一世寂寞
    2020-12-12 10:20

    For me, the problem was a typo on my ~/.ssh/config file. I had:

    Host host1:
      HostName 10.10.1.1
      User jlyonsmith
    

    The problem was the : after the host1 - it should not be there. ssh gives no warnings for typos in the ~/.ssh/config file. When it can't find host1 it looks for the machine locally, can't find it and prints the cryptic error message.

提交回复
热议问题