Some reference on how to connect to a Raspberry Pi running in the same LAN network.
I’ve been using Raspberry Pi running in home, for last 10 months. Until a month ago, the sole purpose of the RPi is to filter off the ads using Pi-hole1, then a speed test module was scheduled to run on it. By the setup, the speedtest-cli runs every 10 mins and fetches internet into csv file. the plan is to arrive to some meaningful conclusion of the data.
The good thing about Pi-hole is its maintenance is literally zero, no need for us to interfere in its operation, barring occasional update. And, with the need of updates, I google the commands to connect to Rpi. Every. Single. Time.
With practice, the commands gets typed, thanks to muscle memory. However, to get it practiced I gotta use the commands quite often. Googling the commands is an obstacle and discourages me to use CLI to enter into Rpi. Noting down the commands is quite useful for reference, and why not make it decentralised by adding to GitHub. Going a step ahead, lets add to blog. If it works out well, more references can be added to the blog for my reference sake.
To identify the IP address of Raspberry Pi
The first one will spit out the IP Address, while the ping gives IP address and the time taken to reach the IP2.
hostname -I
or
ping raspberrypi.local
To enter into Rpi from another machine on same network
Use ssh
protocol to copy files to and from Rpi3.
ssh pi@hostname_of_rpi_from_above_step
Default credentials for Raspberry Pi (with Raspbian OS) Username: pi; Password: raspberry
Copying files from Rpi
Use scp
protocol to copy files to and from Rpi4.
Copying file from Rpi
scp pi@hostname_of_rpi_from_above_step:pathin_rpi/filename.ext destination_filename.ext
Copying file from Rpi
scp filename.ext pi@1hostname_of_rpi_from_above_step:path_in_rpi/
References 1. Pi-hole https://pi-hole.net/ ↩
2. Official Raspberry Pi docs ↩
3. Official Raspberry Pi docs on ssh connections ↩
4. Official Raspberry Pi docs on scp connections ↩
Page source
Page last updated on: 2024-11-06 09:30:05 +0530 +0530Git commit: a98b4d9