4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Could not resolve hostname server: nodename nor servname provided, or not knownを解決する

Last updated at Posted at 2021-02-21

初学者です。
理解が曖昧なところも多いため、ご指摘等ありましたらご連絡いただければ幸いです。

今回はssh接続ができなくなり、デバックを確認したところ
Could not resolve hostname server: nodename nor servname provided, or not known
が出たのでその解決方法を記録として残します。

SSH接続をしようとしたらエラー

さっきまで出来ていたSSH接続をするために

ターミナル
ssh -i ~

と入力したら

ターミナル
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

とエラーが出て接続出来なくなってしまいました。

デバックで確認する

こういう時はデバックを見るべきとのことなので

ターミナル
ssh -vvv user@server

と入力すると

ターミナル
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to server port 22.
ssh: Could not resolve hostname server: nodename nor servname provided, or not known

と出てきました。

解決方法

すみません。工事中です.....

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?