https://feijoa.jp/work/hal/secureSetting/
以上のサイトでラズベリーパイのセキュリティの強化をする。
[php]
sudo passwd root
[/php]
2回パスワードを入力。
[php]
sudo vi /etc/ssh/sshd_config
[/php]
Port 22 ⇒ Port *****
ポート番号を変える。
秘密鍵も作りteratermのときユーザー、パス、鍵を入れないとログインできないようにした。
以下の行も変更。
#PermitRootLogin without-password
PermitRootLogin no
rootログイン禁止
#PasswordAuthentication yes
PasswordAuthentication no
パスワードのみログイン禁止
PermitEmptyPasswords no
空パスワード禁止