Unable to start ssh on server 2019

Deepak0020

New member
Joined
Apr 10, 2025
Posts
2
Location
India
I tried to start ssh on server 2019, but getting error.

I tried to start ssh from services and getting below error. I also tried to start ssh with command but same error.

1744314700238.webp1744329958145.webp
 
via ChatGTP:
...means the OpenSSH SSH Server service doesn't have the required privileges (permissions) assigned to its logon account, most likely NT SERVICE\SSHD.


🛠 Here's how to fix it:​


✅ Step 1: Open Local Security Policy​


  1. Press Win + R, type secpol.msc, and press Enter.
  2. Navigate to:
    Local Policies > User Rights Assignment

✅ Step 2: Grant "Log on as a service" to​


  1. In the right pane, find "Log on as a service".
  2. Double-click it.
  3. Click Add User or Group.
  4. Type:
    NT SERVICE\SSHD
  5. Click OK, then Apply.

If "Add User or Group" is grayed out, it might be controlled by a domain group policy. In that case, you'd need to adjust it from your domain controller's Group Policy Management Console.

✅ Step 3: Restart the OpenSSH SSH Server service​


  1. Open services.msc
  2. Find OpenSSH SSH Server
  3. Right-click > Start
 
Hello xrobwx71,

Thanks for the response. I already did this troubleshooting and nothing change. I am still facing the same issue.

I also tried to re-install the ssh and facing same issue.

I am going to share my ssh config file for your reference.
 

Attachments

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top