Skip to content

Commit b3a6233

Browse files
Merge pull request #9724 from MicrosoftDocs/main
Auto Publish – main to live - 2025-09-16 10:00 UTC
2 parents b767e72 + 0b78d98 commit b3a6233

File tree

7 files changed

+148
-24
lines changed

7 files changed

+148
-24
lines changed

Exchange/ExchangeServer/servertoc/toc.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,6 @@ items:
232232
href: ../client-connectivity/cannot-create-appointment.md
233233
- name: Can't open a shared folder in Outlook on the web
234234
href: ../client-connectivity/cannot-open-shared-folder-owa.md
235-
- name: Can't open documents on a network file share
236-
href: ../../ExchangeOnline/outlook-on-the-web-issues/cannot-open-documents-on-network-file-share.md?context=%2fexchange%2ftroubleshoot%2fcontext%2fserver-context
237235
- name: Can't open OWA, ECP, or EMS after a self-signed certificate is removed
238236
href: ../client-connectivity/owa-ecp-ems-cannot-connect-after-self-signed-certificate-removed.md
239237
- name: Can't search people in OWA
@@ -460,8 +458,6 @@ items:
460458
href: ../public-folders/disable-conflict-message.md
461459
- name: No active public folder mailboxes were found
462460
href: ../public-folders/migrationbatch-fails-no-public-folder-mailboxes.md
463-
- name: Public folder meetings cannot be modified in OWA
464-
href: ../../ExchangeOnline/calendars/public-folder-meetings-not-modified-in-owa.md?context=%2fexchange%2ftroubleshoot%2fcontext%2fserver-context
465461
- name: Large items skipped during migration
466462
href: ../public-folders/large-items-skipped.md
467463
- name: Public folder items are deleted after batch migration
@@ -470,8 +466,6 @@ items:
470466
href: ../public-folders/public-folder-migration-fails.md
471467
- name: Public folder permissions for Exchange Server
472468
href: ../public-folders/public-folder-permissions-for-exchange-server.md
473-
- name: Public folder users can't manage subfolders
474-
href: ../../ExchangeOnline/public-folders/public-folder-users-cannot-manage-subfolders.md?context=%2fexchange%2ftroubleshoot%2fcontext%2fserver-context
475469
- name: Troubleshoot public folder replication issues
476470
href: ../public-folders/troubleshoot-public-folder-replication.md
477471
- name: Setup

Microsoft365/purview/purview/purviewtoc/toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@
111111
href: ../office-message-encryption/cannot-display-message.md
112112
- name: Disable Encrypt-Only
113113
href: ../office-message-encryption/disable-encrypt-only.md
114-
- name: External recipient can't open encrypted email
115-
href: /troubleshoot/outlook/security/external-recipient-can't-open-encrypted-email?context=/troubleshoot/microsoft-365/context/client-context
116114
- name: Resolve Microsoft Purview Message Encryption issues
117115
href: ../office-message-encryption/fix-message-encryption-issue-microsoft-purview.md
118116
- name: PST Import Service

Office/Client/clienttoc/toc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,6 @@
644644
href: ../powerpoint/slide-transition-sounds-missing.md
645645
- name: Troubleshoot a damaged presentation
646646
href: ../powerpoint/damaged-presentation.md
647-
- name: User info in @mentions doesn't resolve
648-
href: /troubleshoot/office/excel/mentions-not-resolve-user-information?context=/troubleshoot/office/context/client-context
649647
- name: Project
650648
items:
651649
- name: Can't add or edit resources in Enterprise Resource Pool
@@ -790,8 +788,6 @@
790788
href: ../word/not-recognize-misspelled-words-in-word.md
791789
- name: Track Changes functionality disabled when RMS is disabled
792790
href: ../word/track-changes-disabled.md
793-
- name: User info in @mentions doesn't resolve
794-
href: /troubleshoot/office/excel/mentions-not-resolve-user-information?context=/troubleshoot/office/context/client-context
795791
- name: Using printer fonts in Word
796792
href: ../word/printer-fonts-in-word.md
797793
- name: Word slows or stops responding

Teams/TOC.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ items:
1616
href: ./teams-administration/disable-sharepoint-news-notifications.md
1717
- name: Error switching a tenant to Teams Only mode
1818
href: ./teams-administration/cannot-switch-to-teams-only-mode.md
19-
- name: Issues receiving messages and calls
20-
href: /microsoftteams/legacy-login-issues?context=/troubleshoot/MicrosoftTeams/context/context
2119
- name: Prevent antivirus and DLP tools from blocking or crashing Microsoft Teams
2220
href: ./teams-administration/include-exclude-teams-from-antivirus-dlp.md
2321
- name: Resolve issues when starting the new Teams app
@@ -38,10 +36,6 @@ items:
3836
href: ./teams-administration/root-cause-undetermined-teams-update-failure.md
3937
- name: '"The following application instance is not present in BVD" error when assigning a phone number to a resource accounts'
4038
href: ./teams-administration/following-application-instance-not-present-error.md
41-
- name: Troubleshoot connectivity issues
42-
href: /microsoftteams/connectivity-issues?context=/troubleshoot/MicrosoftTeams/context/context
43-
- name: Troubleshoot installation and update issues of classic Teams
44-
href: /microsoftteams/troubleshoot-installation?context=/troubleshoot/MicrosoftTeams/context/context
4539
- name: User information isn't updated
4640
href: ./teams-administration/user-information-not-updated.md
4741
- name: Authentication
@@ -70,8 +64,6 @@ items:
7064
href: ./teams-conferencing/organizer-cant-start-teams-meeting.md
7165
- name: PSTN callers with the same "From" number are shown as the same user
7266
href: ./teams-conferencing/pstn-callers-shown-with-same-call-in-number.md
73-
- name: Skype for Business broadcasts a dial tone
74-
href: /troubleshoot/skypeforbusiness/server-conferencing/sfb-play-dial-tone-teams-call?context=/troubleshoot/MicrosoftTeams/context/context
7567
- name: Skype for Business required for some meetings instead of Teams
7668
href: ./teams-conferencing/meeting-requires-skype-instead-of-teams.md
7769
- name: Static conference ID not supported for Teams meetings
@@ -162,8 +154,6 @@ items:
162154
items:
163155
- name: Issue with accessing notebooks
164156
href: ./teams-onenote-integration/issue-access-notebook.md
165-
- name: Temporary change to file size download limit in OneNote
166-
href: /troubleshoot/office/onenote/temp-change-onenote-file-size-download?context=/troubleshoot/MicrosoftTeams/context/context
167157
- name: Phone System
168158
items:
169159
- name: Issues when using SIP devices
@@ -254,8 +244,6 @@ items:
254244
items:
255245
- name: Websites aren't viewable
256246
href: ./sites/cannot-view-website-teams-web-client.md
257-
- name: '"This site cant be reached" and ERR_INVALID_RESPONSE error when accessing SharePoint site'
258-
href: /troubleshoot/sharepoint/sites/err-invalid-response-accessing-sharepoint-site?context=/troubleshoot/MicrosoftTeams/context/context
259247
- name: Tabs
260248
items:
261249
- name: Owner can't create Planner tab

support/windows-client/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,10 @@ items:
10751075
href: ./system-management-components/fail-to-launch-vamt-3dot0.md
10761076
- name: Windows Trace Session Manager service doesn't start
10771077
href: ./system-management-components/windows-trace-session-manager-service-not-start-event-id-7000.md
1078+
- name: OpenSSH
1079+
items:
1080+
- name: OpenSSH client can't connect to a server via SSH
1081+
href: ../windows-server/system-management-components/open-client-can-not-connect-server.md?context=/troubleshoot/windows-client/context/context
10781082
- name: PowerShell
10791083
items:
10801084
- name: Grant-DfsnAccess doesn't change inheritance mode
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
---
2+
title: OpenSSH Client Can't Connect To a Server via SSH
3+
description: Addresses multiple common causes and solutions when encountering OpenSSH connection errors related to host key algorithm mismatches on Windows systems.
4+
ms.date: 09/16/2025
5+
manager: dcscontentpm
6+
audience: itpro
7+
ms.topic: troubleshooting
8+
ms.reviewer: kaushika, warrenw, v-lianna
9+
ms.custom:
10+
- sap:system management components\openssh (including sftp)
11+
- pcy:WinComm User Experience
12+
---
13+
# OpenSSH client can't connect to a server via SSH: "no matching host key type found" errors
14+
15+
This article addresses multiple common causes and solutions when encountering OpenSSH connection errors related to host key algorithm mismatches on Windows systems.
16+
17+
When you connect to a server via Secure Shell (SSH), you might encounter errors such as:
18+
19+
- > Unable to negotiate with \<server\>: no matching host key type found.
20+
- > Host key algorithm: (no match)
21+
- > Permission denied (publickey).
22+
- > Server refused our key.
23+
24+
These errors typically indicate mismatches in supported algorithms, permissions issues, or security concerns.
25+
26+
## Cause 1: RSA algorithm disabled in updated OpenSSH versions
27+
28+
OpenSSH 8.8 and later versions disable the insecure `ssh-rsa` algorithm by default, causing legacy clients dependent on RSA keys to fail connection attempts.
29+
30+
### Resolution
31+
32+
1. Back up the existing configuration:
33+
34+
```powershell
35+
Copy-Item "C:\ProgramData\ssh\sshd_config" "C:\ProgramData\ssh\sshd_config.bak"
36+
```
37+
38+
2. Modify the **sshd_config** file:
39+
40+
1. Open Notepad as administrator.
41+
2. Use the following command to open the **sshd_config** file:
42+
43+
```console
44+
notepad "C:\ProgramData\ssh\sshd_config"
45+
```
46+
47+
3. Add the following lines to the end of the file:
48+
49+
```output
50+
PubkeyAcceptedAlgorithms +ssh-rsa
51+
HostKeyAlgorithms +ssh-rsa
52+
```
53+
54+
3. Restart the OpenSSH service:
55+
56+
```powershell
57+
Restart-Service sshd
58+
```
59+
60+
4. Verify the SSH connection:
61+
62+
```powershell
63+
64+
```
65+
66+
## Cause 2: Missing or incorrect authorized_keys file or improper file permissions
67+
68+
Connection failures occur due to missing or incorrect **authorized_keys** file or improper file permissions, generating "Permission denied" errors.
69+
70+
### Resolution
71+
72+
1. Ensure the **authorized_keys** file exists:
73+
74+
File path:
75+
**C:\ProgramData\\ssh\\administrators_authorized_keys**
76+
77+
Place your public keys correctly in this file.
78+
2. Correct file permissions:
79+
80+
Ensure only administrators have write permissions to the file:
81+
82+
```console
83+
icacls.exe "C:\ProgramData\ssh\administrators_authorized_keys" /inheritance:r /grant "Administrators:F"
84+
```
85+
86+
3. Restart the OpenSSH service:
87+
88+
```console
89+
net stop sshd
90+
net start sshd
91+
```
92+
93+
## Cause 3: Private keys stored in the registry persist across sessions causing security risks
94+
95+
Private keys stored by OpenSSH's ssh-agent service persist across sessions in the Windows registry, potentially causing security risks.
96+
97+
### Resolution
98+
99+
- Use strong encryption and passphrases when generating private keys.
100+
- Limit registry access through user permissions.
101+
- Regularly update OpenSSH from official sources (for example, GitHub).
102+
- Regularly audit registry entries and clear sensitive keys when not needed.
103+
104+
### Optional registry adjustments
105+
106+
Manage RSA keys securely via registry policies:
107+
108+
```powershell
109+
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SSH-Server' -Name AllowRSAKey -Value 1 -Type DWORD
110+
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\SSH-Server\Parameters' -Name AllowRSAKey -Value 1 -Type DWORD
111+
```
112+
113+
### Recommended general security practices
114+
115+
- Secure user accounts and maintain strict file permissions.
116+
- Regularly update OpenSSH to include latest security patches.
117+
- Use stronger algorithms such as ED25519 or ECDSA where possible.
118+
- Educate users on secure key management practices.
119+
120+
## Troubleshooting logs and diagnostics
121+
122+
To gather detailed debugging logs during connection attempts, use the verbose SSH command:
123+
124+
```console
125+
ssh -vvv user@hostname
126+
```
127+
128+
Analyze logs collected from both working and nonworking environments to identify configuration differences.
129+
130+
## Next steps
131+
132+
- Identify and inventory legacy clients still requiring weaker algorithms like `ssh-rsa`.
133+
- Implement a scheduled upgrade strategy to migrate these clients to stronger algorithms.
134+
- After resolving compatibility issues, remove temporary algorithm overrides from **sshd_config**.
135+
- Replace legacy RSA keys with stronger keys (minimum 3072-bit RSA or ED25519).
136+
137+
## References
138+
139+
- [Key-based authentication in OpenSSH for Windows](/windows-server/administration/openssh/openssh_keymanagement)
140+
- [OpenSSH 8.8 Release Notes (RSA deprecation)](https://www.openssh.com/txt/release-8.8)

support/windows-server/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2592,6 +2592,10 @@ items:
25922592
href: ./system-management-components/sms-administrator-console-connectivity-issue.md
25932593
- name: What is MMC
25942594
href: ./system-management-components/what-is-microsoft-management-console.md
2595+
- name: OpenSSH
2596+
items:
2597+
- name: OpenSSH client can't connect to a server via SSH
2598+
href: ./system-management-components/open-client-can-not-connect-server.md
25952599
- name: PowerShell
25962600
items:
25972601
- name: CJK characters are garbled in PowerShell

0 commit comments

Comments
 (0)