LoginSignup
1
2

More than 5 years have passed since last update.

RaspbeeryPIをホスト名で接続する

Last updated at Posted at 2018-06-12

方法

sshで接続する(直接操作する場合は省く)

Raspbian
ssh pi@raspberrypi.local

Ubuntu Mate ※SSHでの接続には初期設定が必要です
ssh ubuntu@[任意のIPアドレス]

$ sudo apt install avahi-daemon
$ sudo vim /etc/hostname

## 任意のホスト名に変更

$ sudo vim /etc/hosts

## 127.0.1.1       [任意のホスト名]

$ sudo hostname [任意のホスト名]
$ sudo service avahi-daemon restart
$ exit

変更後は以下のコマンドで接続可能

$ ssh ユーザ名@任意のホスト名.local

以上

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