Ronald Nutter's Blog, page 7

April 3, 2021

Pi-Hole commands you need to know

Want to get even more from PiHole?
Looking for other ways to get information from PiHole
Stay tune and I will show you 8 commands you need to know

1. Chronometer
a. pihole -c
b. Console dashboard of realtime stats
c. Will continue to run until you press Ctrl-C
d. Append a -e to run console once and exit
2. Status
a. Pihole status
b. Gives you a quick status for pihole
3. Detailed status
a. Pihole debug
b. Gives you a low level report of what is going on with pi-hole
4. DNS logs
a. pihole tail
b. Watch the pi-hole dns query log in realtime
c. Useful for catching problems or just general curiosity
5. Restart DNS
a. pihole restartdns
b. Quick way to restart the dns process without rebooting Pi-Hole
6. Reconfigure
a. pihole reconfigure
b. Re-run the configuration progress to start from scratch
7. Configuration backup
a. pihole -a -t
b. Creates a configuration backup
c. File is placed in the directly you are running the cmd from
d. File can be improted from Settings->Teleport page
8. Clearing the logs
a. Pihole flush
b. Clears the logs pi-hole creates
c. Should only need to run if SD card is running low on space

https://docs.pi-hole.net/core/pihole-...

⏱TIMESTAMPS⏱
0:00 – Intro
0:47 – What we will be covering
1:06 – PiHole Chronometer
2:15 – PiHole Status
2:48 – PiHole Debug
3:23 – PiHole tail
4:26 – PiHole RestartDNS
4:52 – PiHole update
5:30 – PiHole reconfigure
6:28 – PiHole flush

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

RPI 2GB
CanaKit Raspberry Pi 4 Basic Kit (2GB RAM)
https://amzn.to/3vLHqjo

CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
https://amzn.to/3eWsDMR

SanDisk 16GB 3-Pack Ultra microSDHC UHS-I Memory Card (3x16GB)
https://amzn.to/2NYysOF

PNY 32GB Elite Class 10 U1 MicroSDHC Flash Memory Card 3-Pack
https://amzn.to/3w4QCj2

Anker 2-in-1 USB 3.0 SD Card Reader
https://amzn.to/3frgQWK

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #RaspberryPi #PiHole

The post Pi-Hole commands you need to know first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on April 03, 2021 08:21

March 28, 2021

How to make your Raspberry Pi a network speed test tool

Not sure you are getting all the speed from network switches or devices?
Want a budget friendly network speed test tool?
Stay tuned and I will show you how to do this

sudo apt-get update
sudo apt-get upgrade -y

1. Running from RPI Option 1 – https://sbcguides.com/internet-speed-...
a. sudo apt install speedtest-cli
b. Speedtest or speedtest –simple
c. To choose server to test against
i. speedtest –list
ii. speedtest –server SERVER-ID
2. Running from RPI Option 2
a. wget https://github.com/ddo/fast/releases/...
b. sudo install fast_linux_amd64 /usr/local/bin/fast
c. fast
3. Running to Rpi – https://crosstalksolutions.com/raspbe...
a. Install docker
i. curl -sSL https://get.docker.com | sh
ii. sudo usermod -aG docker pi
iii. sudo docker pull portainer/portainer-ce:linux-arm
iv. sudo docker run –restart always -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:linux-arm
v. sudo docker run –restart=unless-stopped –name=openspeedtest -d -p 80:8080 openspeedtest/latest
vi. Add watchtower to auto update installed images
4. Running iPerf
a. https://dronebotworkshop.com/raspberr....
b. sudo apt-get install iperf and then press Enter
c. iperf -s
d. Windows client – http://www.iperfwindows.com/raspi.html

Remember to enable ssh

⏱TIMESTAMPS⏱
0:00 – Intro
0:54 – What we will be covering
1:15 – Using Rpi as a network speed test tool
1:56 – Required items
2:43 – Creating RPI boot SD
3:32 – Booting RPI
4:37 – Speedtest CLI
8:29 – Fast test
9:14 – local Speedtest server using Docker
14:!6 – iPerf for Rpi
15:46 – Summary

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

RPI 2GB
CanaKit Raspberry Pi 4 Basic Kit (2GB RAM)
https://amzn.to/3vLHqjo

CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
https://amzn.to/3eWsDMR

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RaspberryPi #RPI #Speedtest

The post How to make your Raspberry Pi a network speed test tool first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 28, 2021 13:51

March 27, 2021

How to avoid SDcard failures with your Raspberry Pi’s in your SmartHome

Have a SD card that you suspect is failing?
Want a way to avoid having to completely rebuilt a SD card configuration?
Stay tuned and I will show you how to do both of these.

1. Backing up your SD Cards before they have problems
a. Win32 Disk Imager
i. https://win32diskimager.download/down...
b. Apple PiBaker (Mac)
i. https://www.tweaking4all.com/ApplePi-...
2. Using a NAS to manage your SD card backups
a. Good place to store test tools for when you need them
b. Create a dedicated mount point/share for SD backups
3. Tools to test SD Cards
a. H2testw
i. https://www.softpedia.com/get/System/...
b. Check Flash
i. http://mikelab.kiev.ua/index_en.php?p...
c. ChipGenius
i. https://www.softpedia.com/get/System/...

⏱TIMESTAMPS⏱
0:00 – Intro
0:51 – What we will be covering
1:41 – Avoiding SD card failure
2:32 – Required items
5:24 – Backing up the SD card
7:52 – Restoring the SD card
10:45 – Using H2testw
11:42 – Using CheckFlash

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

SanDisk 16GB 3-Pack Ultra microSDHC UHS-I Memory Card (3x16GB)
https://amzn.to/2NYysOF

PNY 32GB Elite Class 10 U1 MicroSDHC Flash Memory Card 3-Pack
https://amzn.to/3w4QCj2

Anker 2-in-1 USB 3.0 SD Card Reader
https://amzn.to/3frgQWK

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RaspberryPi #RPI400

The post How to avoid SDcard failures with your Raspberry Pi’s in your SmartHome first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 27, 2021 07:45

March 22, 2021

How to turn your Raspberry Pi into Android TV

Want to get a streaming receiver and not sure which one?
Would you like to try turning your RPI into one?
Stay tuned and I will show you how to make your RPI into a streaming receiver.

⏱TIMESTAMPS⏱
0:00 – Intro
0:52 – What we will be covering
1:13 – What you will need
2:39 – Creating Android TV SD card
3:39 – Initial bootup of RPI
4:28 – Copy Gapps to USB stick
5:36 – Install Gapps
6:09 – Reboot from Recovery Mode
7:11 – Connect Android TV to your Google account
8:36 – Logitech K400 keyboard
================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

RPI 2GB
CanaKit Raspberry Pi 4 Basic Kit (2GB RAM)
https://amzn.to/3vLHqjo

CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
https://amzn.to/3eWsDMR

Logitech K400 Plus Wireless Livingroom Keyboard with Touchpad
https://amzn.to/3eQOXHq

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RaspberryPi #AndroidTV

The post How to turn your Raspberry Pi into Android TV first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 22, 2021 08:00

March 21, 2021

How to use a Raspberry Pi to learn about CrytoCurrency (Possible S.T.E.M. project) in your Smarthome

Want to see what crypto mining looks like without spending a fortune?
Have a student looking for a unique STEM project?
Stay tuned and I will show you how how to do both of these

⏱TIMESTAMPS⏱
0:00 – Intro
0:48 – What we will be covering
1:16 – What is S.T.E.M.?
3:48 – Required items
6:36 – Getting setup with a mining pool
8:45 – Getting started with mining
12:58 – Where to go from here

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

CanaKit Raspberry Pi 4 2GB Basic Starter Kit with Fan (2GB RAM)
https://amzn.to/35QBB8I
$59

GeeekPi Raspberry Pi 4 Fan Heatsink
https://amzn.to/3vpa0qH
$10

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RaspberryPi #CryptoMining

The post How to use a Raspberry Pi to learn about CrytoCurrency (Possible S.T.E.M. project) in your Smarthome first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 21, 2021 17:08

March 17, 2021

How to manage power to multiple Raspberry Pi’s in your Smarthome (Part 2)

Want to add some flexibility to powering your RPi’s?
Do you have other devices to power and not use a wall wart?
Stay tuned and I will show you how to do this

⏱TIMESTAMPS⏱
0:00 – Intro
0:52 – What we will be covering
1:22 – Required items
3:56 – Setting the power supply
4:44 – Connecting the fuse panel
6:06 – Connecting the power supply
10:32 – Power profiling a raspberry Pi

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

CanaKit Raspberry Pi 4 2GB Basic Starter Kit with Fan (2GB RAM)
https://amzn.to/35QBB8I
$59

Adjustable DC Power Supply (0-30 V 0-10 A)
https://amzn.to/30Hxedb

Electop 6 Way Blade Fuse Block Fuse Box Holder
https://amzn.to/38BJq3E

TICONN Crimping Tool for Heat Shrink Connectors
https://amzn.to/3qGMNMR

TICONN 270PCS Heat Shrink Wire Connectors
https://amzn.to/3ewWI5j

Klein Tools 11046 Wire Stripper/Cutter 16-26 AWG
https://amzn.to/3co2svs

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RPI #Power

The post How to manage power to multiple Raspberry Pi’s in your Smarthome (Part 2) first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 17, 2021 12:12

March 13, 2021

How to manage power to multiple Raspberry Pi’s in your Smarthome

Do you have more than one Raspberry Pi?
Do you have a growing collection of power supplies?
Stay tuned and I will show you a way to make that more manageable
⏱TIMESTAMPS⏱
0:00 – Intro
0:51 – What we will be covering
1:15 – How I got started
1:48 – A slight better way of handling power to multiple RPI’s
4:11 – Using a bench power supply to handle multiple RPI’s
8:38 – Is PoE (Power over Ethernet) an option ?

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

CanaKit Raspberry Pi 4 2GB Basic Starter Kit with Fan (2GB RAM)
https://amzn.to/35QBB8I
$59

Adjustable DC Power Supply (0-30 V 0-10 A)
https://amzn.to/30Hxedb

Electop 6 Way Blade Fuse Block Fuse Box Holder
https://amzn.to/38BJq3E

TICONN Crimping Tool for Heat Shrink Connectors
https://amzn.to/3qGMNMR

TICONN 270PCS Heat Shrink Wire Connectors
https://amzn.to/3ewWI5j

Klein Tools 11046 Wire Stripper/Cutter 16-26 AWG
https://amzn.to/3co2svs

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RPi #BenchPower

The post How to manage power to multiple Raspberry Pi’s in your Smarthome first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 13, 2021 08:19

March 8, 2021

How to monitor commercial aircraft with FlightRadar24 and your Raspberry Pi in your Smarthome

Have a friend/family member on a plane and you would like to know where they are?
Would you like to have a birds eye view of planes aloft in your area?
Stay tuned and I will show you how to setup FlightRadar24 on your RPi.

⏱TIMESTAMPS⏱
0:00 – Intro
0:58 – What we will be covering
1:10 – What is FlightRadar24 ?
2:40 – Required items
4:08 – Created FlightRadar24 boot sd
6:30 – Configuring FlightRadar24
8:08 – Review of data coming from Flight Radar 24

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

CanaKit Raspberry Pi 4 2GB Basic Starter Kit with Fan (2GB RAM)
https://amzn.to/35QBB8I

SunFounder RAB Holder Raspberry Pi Breadboard Holder
https://amzn.to/3elrDRU

Nooelec RTL-SDR, FM+DAB, DVB-T USB Stick Set with RTL2832U & R820T
https://amzn.to/3kTRjWZ

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #FlightRadar24

The post How to monitor commercial aircraft with FlightRadar24 and your Raspberry Pi in your Smarthome first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 08, 2021 07:00

March 6, 2021

How to troubleshoot an RPI using test points in your Smarthome

Have a RPi that doesn’t seem to want to turn on?
Have a RPI that doesn’t seem to want to talk on the network?
Stay tuned and I will show you how to use something called a test point?

Power supply related
TP1 or TP2 – power coming from USB-C/Micro
TP7 – power downstream of onboard fuse (only applies to RPI3)
TP27 – 5v power bus

GPIO
2,4 – 5v
1,17 – 3.3v
Using shield on micro SD holder or Ethernet port for ground connection

Network Connectivity
TP26 – 3.3v to 2v on link (green) activity ethernet jack led (TP22 on RPI3)
TP27 – 3.3v to 2v on speed (yellow) activity ethernet jack led (TP23 on RPI3)

RPI Circuit layouts
https://www.raspberrypi.org/documenta...

⏱TIMESTAMPS⏱
0:00 – Intro
0:54 – What we will be covering
1:37 – What are test points?
2:21 – Power related test points
5:07 – Network related test points

================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

CanaKit Raspberry Pi 4 2GB Basic Starter Kit with Fan (2GB RAM)
https://amzn.to/35QBB8I

Hantek 2D72 Handheld Oscilloscope 70MHz Waveform Generator Multimeter
https://amzn.to/3pSvurC

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #Rpi #Testpoint

The post How to troubleshoot an RPI using test points in your Smarthome first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on March 06, 2021 13:14

February 28, 2021

How to further protect SSH access to Raspberry Pi in your Smarthome

Want to increase the security of SSH access to your RPI?
Want to discourage someone trying to access your RPI?
Stay tuned and I will give you 4 ways to do this

⏱TIMESTAMPS⏱
0:00 – Intro
0:52 – What we will be covering
1:12 – Changing SSH Port number
4:40 – Disabling root/Pi access to SSH
7:47 – Restrict by Subnet

1. Change Default SSH Port
1. sudo cp /etc/ssh/sshd_config sshd_config.bak
2. sudo nano /etc/ssh/sshd_config
3. Look for line that says port 22
4. Remove # from the front of the line if present
5. Change it to 8022 or something else
6. Safe file and exit nano
7. service sshd restart
2. Create new user for remote access
1. adduser username (replace with actual username)
2. usermod -aG sudo username (replace with actual username)
3. SSH to RPI and test new account
3. Disable root access to SSH login
1. sudo cp /etc/ssh/sshd_config sshd_config.bak2
2. sudo nano /etc/ssh/sshd_config
3. Look for PermitRootLogin yes
4. Change it to PermitRootLogin no
5. Look AllowUsers and add new remote account
6. sudo service ssh restart
7. Open new terminal and login with new remote account
8. Once that works, close out the root terminal session
4. Restrict access to internal subnet
1. sudo cp /etc/ssh/sshd_config sshd_config.bak2
2. sudo nano /etc/ssh/sshd_config
3. Look for AllowUsers line you previously added user to
4. Change it to AllowUsers username@10.0.1.*
5. Change 10.0.1.x to the ip address range you are using
6. * is a wildcard to allow any host in the range to access host

Reference articles

5 Linux SSH Security Best Practices to Secure Your Systems


https://linuxize.com/post/how-to-crea...
https://unix.stackexchange.com/questi...
https://man.openbsd.org/sshd_config
================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –

CanaKit Raspberry Pi 4 2GB Basic Starter Kit with Fan (2GB RAM)
https://amzn.to/35QBB8I

———————————–
Click on this link to get the
SmartHome Account Creation Checklist

http://eepurl.com/go4fVP

➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe

To listen to an audio version of this episode while driving, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!

To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.

Visit http://www.ronaldnutter.com to see all the books Ron has written

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!

*===============================*
Become a Patreon supporter
https://www.patreon.com/techbytesrn
*===============================*

#TechBytesRN #smarthome #RPI #SSH

The post How to further protect SSH access to Raspberry Pi in your Smarthome first appeared on TechBytes With Ron Nutter.
 •  0 comments  •  flag
Share on Twitter
Published on February 28, 2021 17:35