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

前端 未结 15 2313
忘掉有多难
忘掉有多难 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:12

    I needed to connect to remote Amazon server

    ssh -i ~/.ssh/test.pem -fN -L 5555:localhost:5678 ubuntu@hostname.com

    I was getting the following error.

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

    Solution For Mac OSX

    Pinging the host resolved the issue. I am using Mac OSX Seirra.

    ping hostname.com

    Now problem resolved. Able to connect to the server.

    Note: I tried this solution also. But it didn't work out. Then ping resolved the issue.

提交回复
热议问题