ブログ - sshを有効にする
今年の初めにも書いたのだけれど現在のRaspberry PiにインストールしたOS,RasobianではデフォルトでSSHDが有効ではないので,これを有効にする.
まずは,/boot/sshファイルがあるか確認.
ファイルがなかったので作成する.この時,sudoユーザで.最初はパスワードはついてない.
これでOSを再起動すれば良い.再起動後,MacからSSHで接続して見る.
piユーザのパスワードはraspberryなので,これは変更しなければならない.
まずは,/boot/sshファイルがあるか確認.
pi@raspberrypi:~ $ ls -la /boot/ssh🆑
ls: cannot access /boot/ssh: No such file or directory
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo touch /boot/ssh🆑
pi@raspberrypi:~ $ ls -la /boot/ssh🆑
-rwxr-xr-x 1 root root 0 Jul 31 14:27 /boot/ssh
pi@raspberrypi:~ $
MBA13:~ ujpadmin$ ssh pi@192.168.20.241🆑
The authenticity of host '192.168.20.241 (192.168.20.241)' can't be established.
ECDSA key fingerprint is SHA256:IV5MCq/RvD+ge5ptTuDVDLGxixqVHvKugMxpvsMo3iU.
Are you sure you want to continue connecting (yes/no)? yes🆑
Warning: Permanently added '192.168.20.241' (ECDSA) to the list of known hosts.
pi@192.168.20.241's password:raspberry🆑
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: Mon Jul 31 15:44:54 2017 from 192.168.20.241
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.
pi@raspberrypi:~ $