Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

4 Ways to Enable an SSH Server on a Raspberry Pi

In this video I take a look at 4 ways to enable an SSH Server on a Raspberry Pi. This would allow you to connect to a Raspberry Pi from another computer using SSH. This also allows you to copy files from a computer to the Raspberry Pi using scp.

Create an Empty ssh File on the Boot Partition (on a Raspberry Pi)
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo touch /boot/ssh
sudo touch /boot/ssh
sudo touch /boot/ssh
Reboot Raspberry Pi
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
systemctl reboot
systemctl reboot
systemctl reboot
Open Raspberry Pi Software Configuration Tool
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo raspi-config
sudo raspi-config
sudo raspi-config
Check for sshd Process
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ps ax | grep 'ssh'
ps ax | grep 'ssh'
ps ax | grep 'ssh'
Enable SSH Server on Boot
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl enable ssh
sudo systemctl enable ssh
sudo systemctl enable ssh
Start SSH Server
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl enable ssh
sudo systemctl enable ssh
sudo systemctl enable ssh
Stop SSH Server
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl stop ssh
sudo systemctl stop ssh
sudo systemctl stop ssh
Disable SSH Server on Boot
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl disable ssh
sudo systemctl disable ssh
sudo systemctl disable ssh
View Status of SSH Service
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo systemctl status ssh
sudo systemctl status ssh
sudo systemctl status ssh
SSH to the Raspberry Pi while on the Raspberry Pi
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh localhost
ssh localhost
ssh localhost
SSH to the Raspberry Pi from other Machine
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh pi@raspberrypi.local
ssh pi@raspberrypi.local
ssh pi@raspberrypi.local

or

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
ssh pi@ip_address_of_pi
ssh pi@ip_address_of_pi
ssh pi@ip_address_of_pi
Install OpenSSH Server (if needed)
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
sudo apt install openssh-server
sudo apt install openssh-server
sudo apt install openssh-server

Leave a comment

Your email address will not be published. Required fields are marked *