- シャットダウン
- RaspberryPi からネットワークケーブルを外す
- power on
- 設定した固定IP で起動していることを確認
$ arp -a
? (192.168.1.150) at b8:27:eb:1c:15:60 on en0 ifscope [ethernet]
- PC から ssh接続
$ ssh pi@192.168.1.150
このとき,つぎのメッセージが返され,接続が拒否される:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
5d:cc:99:ce:91:58:25:7b:03:95:b1:0f:f6:c6:52:4d.
Please contact your system administrator.
Add correct host key in /Users/m/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/m/.ssh/known_hosts:1
RSA host key for 192.168.1.150 has changed and you have requested strict checking.
Host key verification failed.
つぎのコマンドで ~/.ssh/known_hosts を空にする:
~ $ \cp /dev/null ./.ssh/known_hosts
そして再び
$ ssh pi@192.168.1.150
The authenticity of host '192.168.1.150 (192.168.1.150)' can't be established.
RSA key fingerprint is 5d:cc:99:ce:91:58:25:7b:03:95:b1:0f:f6:c6:52:4d.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.150' (RSA) to the list of known hosts.
pi@192.168.1.150's password:
Linux dex 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Mar 13 15:39:50 2021
pi@dex:~ $
- PC のブラウザから http 接続
- http 接続した画面から vpn 接続
- RaspberryPi の無線接続の内容のチェック
$ ip a
1: lo: mtu 65536 qdisc
noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc
pfifo_fast state DOWN group default qlen 1000
link/ether b8:27:eb:49:40:35 brd ff:ff:ff:ff:ff:ff
3: wlan0: mtu 1500 qdisc
pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:1c:15:60 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.150/24 brd 192.168.1.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 2400:4060:e62:a700:2a05:d2fe:64aa:d038/64 scope
global mngtmpaddr noprefixroute dynamic
valid_lft 13486sec preferred_lft 13486sec
inet6 fe80::4f93:cfe9:bed9:29ba/64 scope link
valid_lft forever preferred_lft forever
|