Can't Connect to PC via SSH After Upgrading Windows 10 to 11: A Troubleshooting Guide

Abstract: Restore SSH connectivity to Windows 11 after upgrading from Windows 10 by fixing the OpenSSH Server service and firewall rules.

Created: 2026-08-02 by
SSH connections fail after upgrading from Windows 10 to Windows 11 because the OpenSSH Server service often fails to start automatically or loses its firewall rules during the major version transition. This guide provides immediate steps to restore remote access by verifying service status, re-registering firewall exceptions, and ensuring the correct authentication methods are enabled for your specific client requirements.

Verify the OpenSSH Server Service Status

The most common reason for connectivity loss is that the OpenSSH.Server service did not successfully migrate its startup configuration from the previous operating system. You must first determine if the service is installed and running on your Windows 11 machine. Press Win + R, type services.msc, and hit Enter to open the Services console. Scroll down to locate OpenSSH SSH Server. If the service is missing entirely, you need to reinstall it via PowerShell as an optional feature. Run Get-WindowsCapability -Online | Where-Name Like 'OpenSSH*' to check availability, then use Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 to install it if it was uninstalled during the upgrade process. If the service exists but shows a status of "Stopped" or "Disabled," right-click it and select Properties. Change the Startup Type to Automatic to ensure it launches at boot. Click Start to bring the service online immediately. Check the "Log On" tab to confirm it is using the Local System account, which is standard for this service. If the service starts but stops shortly after, check the Event Viewer under Applications and Services Logs > OpenSSH for error details regarding permission denials or missing host keys.

Reconfigure Windows Defender Firewall Rules

Major OS upgrades frequently reset or invalidate existing firewall configurations, blocking inbound traffic on port 22 even when the service is active. To resolve this, you must explicitly allow incoming SSH connections through Windows Defender Firewall. Open PowerShell as Administrator and execute the command New-NetFirewallRule -DisplayName "OpenSSH-Server-In-TCP" -Direction Inbound -Protocol TCP -LocalPort 22 -Action Allow. This creates a new rule that permits traffic specifically for the SSH daemon. Alternatively, navigate to Control Panel > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall. Ensure that OpenSSH Server is checked for both Private and Public networks. If the entry is grayed out or missing, it indicates the service registration is incomplete, requiring you to restart the service again or reinstall the OpenSSH capability. It is crucial to verify this step because many users assume the firewall remains unchanged after an upgrade, leading to silent connection drops. For more context on managing SSH hosts in Windows environments, see our article on Configuring Windows SSH Host with ConEMU.

Check Authentication and Key Configuration

Windows 11 may enforce stricter security policies regarding how users authenticate via SSH. By default, OpenSSH on Windows supports password authentication and public key authentication. However, if your clients rely on specific key types or if the sshd_config file was corrupted, connections will be rejected. Locate the configuration file at C:\ProgramData\ssh\sshd_config. Note that ProgramData is a hidden folder. Open this file with a text editor running as Administrator. Ensure that the line PasswordAuthentication yes is present and uncommented if you intend to use passwords. For key-based authentication, verify that the user's authorized_keys file exists in C:\Users\\.ssh\ and has correct permissions. The file should only be readable by the owner. Incorrect permissions here cause the SSH server to ignore the keys silently. Additionally, check if the PubkeyAuthentication directive is set to yes. Restart the OpenSSH service after making any changes to apply them.

Validate Network Adapter and IP Changes

Upgrading Windows can sometimes trigger network adapter resets or DHCP renewals that change your local IP address. If you are connecting using a static IP address recorded before the upgrade, you might be targeting the wrong machine. Verify your current IP by running ipconfig in Command Prompt. Look for the IPv4 Address under your active network adapter. If you are connecting over the internet, ensure your router's port forwarding rules still point to this new IP address. Furthermore, some network adapters disable legacy protocols or require updated drivers post-upgrade. Right-click your network adapter in Device Manager and select Update Driver. Outdated network stack components can interfere with the low-level socket bindings required by SSH. If you recently switched Wi-Fi networks or Ethernet cables, ensure that the network profile is set to Private rather than Public, as Public profiles block discovery and related services more aggressively.

Test Connectivity and Debugging

Once the service is running and firewall rules are applied, test the connection locally first. Open a new terminal and run ssh localhost. If this succeeds, the server is functioning correctly. Then attempt the connection from your remote machine. Use verbose mode on the client side by adding the -v flag (e.g., ssh -v user@host) to see exactly where the handshake fails. Common failure points include hostname resolution issues or DNS mismatches. If you encounter specific errors like "Connection refused," it confirms the service is not listening. If you get "Permission denied (publickey)," review the authentication settings discussed earlier. For troubleshooting other upgrade-related anomalies, such as offline errors, refer to Windows 10 Offline Upgrade Stuck at 21% with Error 0xC1900101-0x2000D.

Frequently Asked Questions

Why does my SSH connection time out instead of being refused?

A timeout usually indicates that a firewall is dropping packets rather than actively rejecting them. Check your router's external firewall and ensure port 22 is forwarded correctly to your PC's internal IP address. Also, verify that Windows Defender Firewall allows inbound traffic on port 22 for both private and public networks.

Can I use PuTTY with the native Windows OpenSSH server?

Yes, PuTTY is fully compatible with the native OpenSSH server provided by Microsoft. You simply need to configure PuTTY to connect to the same IP address and port 22. Ensure that the key format matches; PuTTY uses .ppk files, while Windows OpenSSH expects id_rsa or similar formats in the .ssh directory.

What should I do if the OpenSSH service keeps crashing on startup?

Check the Event Viewer for detailed error logs under Applications and Services Logs > OpenSSH. Common causes include incorrect file permissions on the sshd_config file or missing host keys. Re-running the installation command or resetting the permissions on the C:\ProgramData\ssh folder often resolves persistent crashes.

Does Windows 11 support SSH agent for storing passphrases?

Yes, Windows 11 includes the OpenSSH Agent service which can store unlocked private keys in memory. Enable this service in services.msc and set it to Automatic. You can add keys using the ssh-add command in PowerShell, allowing you to connect without re-entering passphrases repeatedly.

How do I reset SSH host keys if they are causing conflicts?

Delete the files located in C:\ProgramData\ssh\ssh_host_*_key and their corresponding public key files. After deletion, restart the OpenSSH SSH Server service. The service will automatically generate new host keys upon next startup, resolving any fingerprint mismatch errors clients might display.

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