0
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 1 year has passed since last update.

EC2インスタンスへPuTTyでSSH接続した際、実際と異なるIPが表示される

Posted at

■概要(発生した問題)

PuTTyを利用したSSH接続を行うと、画面上部(白帯部分)のIPが実際の接続先とは違うIPが表示されてしまう。

こちらは複製したEC2インスタンスに対して、SSH接続した際に発生しました。

■原因

内部のどこかの設定だろうなあとは思っていたんですが、原因は「Hostname」の設定でした。
下記に設定があります。

/etc/hostname

下記で書き換えが可能です。
恐らく再起動の必要はなく、接続をやり直すと表示が変わっています。

sudo hostnamectl set-hostname <HOSTNAME>

■最後に

サーバー同士の接続等では、不具合の原因にもなります。
注意しましょう!

0
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
0
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?