SSH Communication - GitMasterNikanjam/RaspberryPi_WiKi GitHub Wiki
For connect to Raspberry Pi terminal console, It can do by putty software. Before use SSH by Putty,The SSH should be enabled in raspberry pi os system.
To enable SSH on a Raspberry Pi, you can follow these steps:
Enable SSH by raspi-config menue
1- Power Up Your Raspberry Pi: Make sure your Raspberry Pi is connected to power and running. If it's a fresh installation, you should have it connected to a monitor, keyboard, and mouse for initial setup.
2- Access the Configuration Menu: Open the Raspberry Pi configuration menu. You can do this in one of the following ways:
If you're using the Raspberry Pi OS desktop environment, click on the "Raspberry Pi" icon in the upper-left corner, go to "Preferences," and select "Raspberry Pi Configuration." If you're using the terminal, you can access the configuration menu by running the following command:
sudo raspi-config
3- Navigate to the Interfacing Options: In the Raspberry Pi Configuration menu, go to the "Interfaces" tab using the arrow keys and press Enter.
Enable SSH: In the "Interfaces" tab, you'll find an option labeled "SSH." Use the arrow keys to select "SSH" and press Enter. You'll be asked if you want to enable SSH. Confirm by selecting "Yes."
Exit and Reboot: After enabling SSH, you can exit the Raspberry Pi Configuration menu and reboot your Raspberry Pi to apply the changes. If you're in the terminal, you can reboot by running the following command:
sudo reboot
4- Find the Raspberry Pi's IP Address: You'll need to know the IP address of your Raspberry Pi to connect to it via SSH. You can find the IP address by using the hostname command in the terminal:
hostname -I
Note down the IP address, as you'll need it to connect to your Raspberry Pi remotely.
5- SSH into Your Raspberry Pi: To connect to your Raspberry Pi via SSH, you can use an SSH client. If you're using a Windows PC, you can use a program like PuTTY. If you're on macOS or Linux, you can use the terminal. Here's the basic syntax to connect via SSH:
ssh pi@your_pi_ip_address
Replace your_pi_ip_address with the actual IP address of your Raspberry Pi. By default, the username is "pi," and you'll be prompted for the password you set during the initial setup.
That's it! You've enabled SSH on your Raspberry Pi, and you can now remotely access and manage it over the network. This is particularly useful for headless Raspberry Pi setups, where you don't have a monitor, keyboard, or mouse connected to the Pi. Instead, you can control it from another computer using SSH.
Enable SSH by Raspberry Pi Configuration
At this way it is easy to setup ssh enable/disable in Raspberry Pi OS Desktop.
go to Raspberry Pi Configuration >> Interfaces >> change SSH enable/disable
Enable SSH by put SSH file in SD CARD of Raspberry Pi OS
Hint: This way when use that user can not use Graphical Interface Raspberry Pi Desktop View.
At this way just put SSH plain file in SDCARD of Raspberry Pi without any format file and if the file has format eg txt, remove format file.
Then reboot Raspberry pi.
Enable SSH by Raspberry Pi Imager software
Before install the Raspberry Pi OS by Raspberry Pi Imager Software. It can just enable SSH by the Imager Software. That's it.