LoginSignup
6
8

More than 5 years have passed since last update.

Raspberry Pi3自動ログイン設定変更&セキュリティ設定等

Last updated at Posted at 2016-05-04

やること

rootのパスワード変更

sudo passwd root
確認含め2回入力

新規ユーザーの追加

piユーザー削除 or su権限削除

SSHポート番号変更

sudo vim /etc/ssh/sshd_config

/etc/ssh/sshd_config
# What ports, IPs and protocols we listen for
#Port 22
Port 49794 #任意のポート番号に変更

自動ログインユーザ変更

http://marshland.hatenablog.com/entry/2015/11/14/022345
Debian Jessie Wheezy 自動ログイン lightdm系

ファイアウォール(ufw)設定

sudo apt-get -y install ufw

デフォルトは拒否
sudo ufw default deny
sshポート許可
sudo ufw limit 49794/tcp
ntpポート許可
sudo ufw limit 123/udp
vpnポート許可
sudo ufw limit 500/udp
sudo ufw limit 4500/udp
稼働確認
sudo ufw status
Status: activeならOK

参考

Raspbian Jessieの基本セキュリティ設定を実施する
RaspberryPiをRaspbianで使う場合の初期設定メモ(ユーザ追加)

気が向いたら後で編集

6
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
8