LoginSignup
1
0

More than 1 year has passed since last update.

"ssh: Could not resolve hostname" IPアドレスを固定せずにホスト名でSSH接続したい

Posted at

やりたいこと

IPアドレス管理が面倒くさいから固定せずにSSH接続したい

環境

windows10 → Ubuntu 20.04.3 LTS
windowsからUbuntuへのSSH接続

何もせずホスト名でSSHしようとすると

> ssh [user名]@[host名]

ssh: Could not resolve hostname ***

対処法

Ubuntuにsambaをインストールしてください
NetBIOSによる名前解決が可能になるそうです
詳しくは

sambaインストール方法

以下のリンクを参考に

ファイアウォールの設定も

どうなる

IPアドレスを調べなくてもホスト名だけで接続できる!!

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