You can then connect directly with ssh vps. Then we send the public key to the server: ssh-copy-id -i ~/.ssh/ pi To get the latest driver, including windows 10 drivers, you can choose from a list of most popular microsoft downloads. Locally, we create a new private key: ssh-keygen -t ed25519 -a 100 We finally restart the Raspberry Pi: sudo reboot We modify the following parameters with: Port To do this, we edit: sudo nano /etc/ssh/sshd_config We will prevent the `root’ connection and change ports, in order to prevent a large number of attack attempts. In order to set the language and time zone, launch: sudo dpkg-reconfigure locales You may need to use a microSD to SD card adapter. Put the microSD card in the card reader of your computer. If you have already done so, turn off the device and remove the card. Let’s start by changing it: passwdĪfter setting up a new server, we start by updating all the packages: sudo apt-get update & sudo apt-get upgrade Make sure you properly installed Raspbian on your Raspberry Pi microSD card. Once the Raspberry is powered up with the SD card, you can connect with SSH: ssh default password is raspberry. We put: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevįinally, we eject the card: sudo diskutil eject /dev/rdisk If you need to connect on a Wifi network at boot: nano /Volumes/boot/wpa_nf To be able to connect with SSH, we must create a file named ssh at the root of our SD card: touch /Volumes/boot/ssh Sudo dd bs=1m if=image.img of=/dev/rdisk conv=sync Once you know the SD card number, which appears as /dev/disk, you unmount the volume, then write the image on it: diskutil unmountDisk /dev/disk On MacOS, we start by looking at the address of the SD card: diskutil list The official site offers user manuals for Linux, MacOS and Windows. Downloadingįirst we download the image of Raspbian. This article is a small personal memo on the steps to install and secure Raspbian to get a Raspberry Pi ready to use, usable via command line with SSH. Historically very large, because it has a graphic interface and several specific software, Raspbian now exists in a Light version that allows you to limit the packages to the essentials, to manage your Raspberry Pi from the command line. I have since migrated to the Raspbian distribution, based on Debian and made specifically for the Raspberry Pi. More than four years ago, I wrote an article explaining how to Install Arch Linux on Raspberry Pi: Raspbian Lite on Raspberry Pi – Sylvain Durand sylvain durand Raspbian Lite on Raspberry Pi
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |