UJP - sshを有効にする

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ Raspberry Pi の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - sshを有効にする

sshを有効にする

カテゴリ : 
PC » Raspberry Pi
ブロガー : 
ujpblog 2017/7/31 23:29
 今年の初めにも書いたのだけれど現在のRaspberry PiにインストールしたOS,RasobianではデフォルトでSSHDが有効ではないので,これを有効にする.

 まずは,/boot/sshファイルがあるか確認.
pi@raspberrypi:~ $ ls -la /boot/ssh🆑
ls: cannot access /boot/ssh: No such file or directory
pi@raspberrypi:~ $ 
 ファイルがなかったので作成する.この時,sudoユーザで.最初はパスワードはついてない.
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:~ $ 
 これでOSを再起動すれば良い.再起動後,MacからSSHで接続して見る.
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:~ $
 piユーザのパスワードはraspberryなので,これは変更しなければならない.

トラックバック


広告スペース
Google