ssh を有効化し,そして RasPi のいまの IPアドレスを知った。
そこで,PC から RasPi に ssh 接続:
初回の接続なので,つぎのメッセージになる:
The authenticity of host '[IPアドレス]' can't be established.
RSA key fingerprint is is 73:e9:fe:e4:16:6e:a5:99:ae:b7:44:12:24:aa:d0:ff.
Are you sure you want to continue connecting (yes/no)?
yes を入力
パスワードの入力が求められる。
raspberry を入力
つぎのメッセージになる
Linux raspberrypi 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 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.
SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
そして,つぎのコマンドプロンプトになる:
備考
PC側で,ターミナルの新規ウィンドウを開き,つぎのファイルに Raspberry Pi の IPアドレスが加わっていることを確認:
/Users/[ユーザ名]/.ssh/known_hosts
ちなみに,known_hosts ファイルを空にしたいときは
~ $ \cp /dev/null ./.ssh/known_hosts
この後の ssh 接続では,初回アクセスのメッセージが表示されることになる。
|