SSHing Raspberry Pi 5 to Local Network using Wi-Fi

Abstract: Resolve SSH connectivity issues on Raspberry Pi 5 by configuring Wi-Fi, verifying IP assignment, and enabling the SSH service.

Created: 2026-08-10 by

Connect your Raspberry Pi 5 to Wi-Fi by enabling the interface via nmtui or editing /etc/wpa_supplicant/wpa_supplicant.conf, then ensure SSH is active in the Raspberry Pi OS configuration. Verify the device has obtained an IP address using ip addr and confirm your local network router assigns consistent addresses to prevent connection drops during subsequent sessions.

Enabling Wi-Fi Connectivity

The first step to establishing a wireless SSH connection is ensuring the Raspberry Pi 5 actually connects to your local network. Unlike older models, the Pi 5 relies heavily on NetworkManager for modern network management tasks. You can interact with this system through a terminal-based user interface which is often less error-prone than manual file editing for beginners.

To use the text-based UI, open a terminal on the Pi (either via HDMI monitor or direct console) and run the following command:

nmtui

Select "Activate a connection" from the menu. Your available Wi-Fi networks should appear in a list. Choose your desired network, enter the password when prompted, and save the settings. The system will attempt to connect immediately. If you prefer command-line configuration, you must edit the wpa_supplicant.conf file located in /etc/wpa_supplicant/. Ensure your country code is set correctly at the top of the file, as this affects available channels and power limits.

After making changes, restart the networking service to apply them:

sudo systemctl restart NetworkManager

If the connection fails, check the status using nmtui again or review logs with journalctl -u NetworkManager. For detailed guidance on resolving specific connectivity errors, see our article on Troubleshooting SSH Connection on Raspberry Pi.

Verifying Network Assignment

Once Wi-Fi is connected, you must identify the IP address assigned to the Pi 5. Wireless connections are dynamic, meaning the IP can change if the DHCP lease expires or if the router restarts. Use the ip command to find the current address:

ip addr show wlan0

Look for the inet value under the wlan0 interface. It typically looks like 192.168.1.x or 10.0.0.x. If you do not see an IP address listed here, the Wi-Fi connection has not been established successfully. In such cases, verify that the SSID matches exactly, including case sensitivity, and that the signal strength is sufficient.

It is highly recommended to configure a static IP reservation on your router for the Pi 5's MAC address. This ensures that every time the Pi boots, it receives the same IP address, simplifying future SSH attempts. Without this, you might spend time looking up the new IP address after every reboot.

Activating the SSH Service

Raspberry Pi OS disables SSH by default for security reasons on fresh installs. To enable it, you can use the raspi-config utility. Open a terminal and type:

sudo raspi-config

Navigate to "Interface Options" and select "SSH". Choose "Yes" to enable the server. Alternatively, if you have headless access or prefer command-line methods, you can create an empty file named ssh in the root directory of the boot partition. On Raspberry Pi OS Bookworm and later versions, this method may require additional steps due to changes in how the SSH service is managed, so raspi-config remains the most reliable approach for general users.

After enabling SSH, verify that the service is running:

systemctl status ssh

You should see an "active (running)" status. If it is inactive, start it manually with sudo systemctl start ssh. For more complex authentication issues, particularly involving public keys, refer to our guide on Raspberry Pi 5: Can't SSH as a PIServer via Public Key from Windows 10.

Connecting from Your Local Machine

With the Pi connected to Wi-Fi and SSH enabled, you can now initiate the connection from your computer. Open your terminal (or PowerShell on Windows) and use the standard SSH syntax:

ssh [email protected]

Replace 192.168.1.XX with the actual IP address you identified earlier. The default username for Raspberry Pi OS is usually pi, although newer versions may prompt you to create a new user during initial setup. If you changed the hostname, you can also try connecting via the hostname instead of the IP, provided your local DNS or mDNS resolver is functioning correctly.

If the connection hangs or times out, ensure that your local firewall is not blocking outbound SSH traffic. Additionally, verify that the Pi and your computer are on the same subnet. Some routers isolate Wi-Fi clients from wired devices or vice versa, which can block local SSH access even if both devices are online.

Troubleshooting Common Issues

If you cannot connect despite correct credentials and IP addresses, several factors could be at play. First, check if the Pi is actually broadcasting its presence. You can ping the IP address from your computer to test basic reachability:

ping 192.168.1.XX

If the ping fails, the issue is network-level, not SSH-specific. Check your router's client list to see if the Pi is listed. If it is listed but unreachable, consider resetting the network adapter on the Pi. Second, verify that no other software on your local network is interfering with port 22. Third, ensure that the Wi-Fi signal is strong enough; weak signals can cause packet loss that disrupts the SSH handshake.

For issues related to specific operating systems like Ubuntu Server on the Pi, consult our troubleshooting guide for Troubleshooting SSH Connection Issues on a Fresh Install of Ubuntu Server 23.10 on a Raspberry Pi.

Frequently Asked Questions

Why can't I SSH into my Pi over Wi-Fi but can over Ethernet?

This usually indicates a firewall rule or router setting isolating the Wi-Fi network segment. Check your router's "AP Isolation" or "Client Isolation" settings and disable them if enabled. Additionally, ensure the Pi's Wi-Fi driver is fully updated.

How do I find my Raspberry Pi's IP address if I forgot it?

You can log into your router's admin page and look at the DHCP client list for a device named "raspberrypi" or matching the Pi's MAC address. Alternatively, use a network scanner app on your phone to discover active devices on your local subnet.

Is it safe to use Wi-Fi for SSH compared to Ethernet?

Wi-Fi is generally safe for SSH as long as your Wi-Fi network uses WPA2 or WPA3 encryption. However, Wi-Fi is susceptible to interference and signal dropouts, which can interrupt remote sessions. Ethernet provides a more stable connection for critical operations.

What should I do if the SSH connection is extremely slow?

Slow connections often result from high latency or packet loss on the Wi-Fi link. Try moving the Pi closer to the router or switching to the 5GHz band if supported. Also, ensure you are not congesting the bandwidth with heavy downloads while attempting to SSH.

Can I use a hostname instead of an IP address?

Yes, if your local network supports mDNS (Bonjour), you can connect using ssh [email protected]. This requires that your computer and the Pi are on the same network and that the .local domain resolution is working correctly on your host machine.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More