Software⏱️ 2 min read📅 2026-05-31

How to Fix: Starting ssh-agent on Windows 10 fails: "unable to start ssh-agent service, error :1058"

Unable to start ssh-agent service on Windows 10 due to error code 1058.

Quick Answer: Try installing OpenSSH client and starting the ssh-agent manually using the command 'ssh-agent -s'

The error message "unable to start ssh-agent service, error :1058" on Windows 10 indicates that the ssh-agent service is not functioning correctly. This issue can be caused by a variety of factors, including incorrect installation, corrupted system files, or conflicts with other services.

⚠️ Common Causes

  • Incorrect installation of OpenSSH

🚀 How to Resolve This Issue

Method 1: Installing OpenSSH via PowerShell

  1. Step 1: Run the following command in PowerShell with elevated rights: Set-ExecutionPolicy RemoteSigned -Force
  2. Step 2: Install OpenSSH using the following command: windows-feature --name OpenSSH --enable
  3. Step 3: Start the ssh-agent service by running the following command: Start-Service ssh-agent

Method 2: Installing OpenSSH via Windows Features

  1. Step 1: Run the following command in PowerShell with elevated rights: Set-ExecutionPolicy RemoteSigned -Force
  2. Step 2: Enable OpenSSH using the following command: Enable-WindowsOptionalFeature -Name OpenSSH -Online
  3. Step 3: Start the ssh-agent service by running the following command: Start-Service ssh-agent

✨ Wrapping Up

By following these methods, you should be able to resolve the "unable to start ssh-agent service, error :1058" issue on your Windows 10 system.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions