Member-only story
- SSH connection
- Connection using public / private key
- Firewall settings
- Dos attack, brute force attack countermeasures
- Use free DNS
- Accessing Raspberry Pi in your house from an external network, etc.
Let’s get started
Add new users to Raspberry Pi
In the default state, the pi user exists, and if it is left as it is, it may be invaded by the Raspberry server by targeting the pi user, so add another new user and delete the pi user. It also grants sudo privileges to the newly added user.
$ sudo adduser [username]
$ sudo usermod -G sudo [username]
$ sudo userdel -r pi
✏️ By adding -r to userdel, the home directory /home
will also be deleted.
Enable SSH connection
$ sudo raspi-config
Open the setting screen with, select Interfacing Options-> P2…