#1 - Base installation of Raspberry Pi
Installation Quick List
-
Download Raspbian. Jessie is the latest stable at the moment, based on debian.
-
Unzip it and write it down to a sdcard.
sudo dd if='/path/to/file.img' of='/dev/sdcard' bs=1024
-
Boot! Attach network cable, sdcard, power.
Make it yours
After the installation, it is highly suggested to change the auth for accessing the pi.
-
Change the password
You definitely do not want the default password to access a passwd-less sudo account.$ sudo passwd pi
-
Increase ssh security The /etc/ssh/ssd_config file contains all the configurations for the ssh daemon.
- Change auth method (repeat step 1-2-3 for every machine, use always different keys for each one)
PASSWORDS ARE BAD.-
Do a
ssh-keygen -t rsa -b 4096
on the host machine and follow the instructions to generate a new key. -
Copy the freshly generated public key
$ cat .ssh/id_rsa.pub | pbcopy
-
Add it to the raspi authorized keys
$ sudo nano .ssh/authorized_keys
-
Edit the sshd_config PasswordAuthentication parameter
$ sudo nano /etc/ssh/sshd_config [...] PasswordAuthentication no [...]
-
Restart ssh
$ sudo service ssh restart
-
Change default sshd port
-
Edit the ssd_config port
$ sudo nano /etc/sshd_config # Package generated configuration file # See the sshd_config(5) manpage for details # What ports, IPs and protocols we listen for Port 1234
-
Restart ssh
$ sudo service ssh restart
-
-
- Change auth method (repeat step 1-2-3 for every machine, use always different keys for each one)