Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Enable or Install the OpenSSH Client on Windows 10

October 2, 2023
in Blog, Powershell, Windows 10
0
ADVERTISEMENT

Table of Contents

Native SSH Client in Windows 10

The built-in SSH client appeared in Windows 10 and Windows Server 2019. ssh.exe can be used to securely connect to Linux/UNIX servers, VMWare ESXi hosts and other devices instead of Putty. The native Windows SSH client is based on the OpenSSH port and is preinstalled in Windows starting from Windows 10 build 1809.

The OpenSSH client is included in Windows 10 Features on Demand. The SSH client is installed by default on Windows Server 2019, Windows 10 1809 and newer builds.

Install OpenSSH Client using PowerShell

1️⃣ Check that the SSH client is installed. Open Windows PowerShell then run bellow command. In my example, the OpenSSH client is installed (State: Installed)

Get-WindowsCapability -Online | ? Name -like 'OpenSSH.Client*'
Name  : OpenSSH.Client~~~~0.0.1.0
State : Installed

#Output when OpenSSH client not installed 
Name  : OpenSSH.Client~~~~0.0.1.0
State : NotPresent

2️⃣ If not (State: Not Present), you can install it using the PowerShell command: Add-WindowsCapability -Online -Name OpenSSH.Client*

Add-WindowsCapability -Online -Name OpenSSH.Client*
Path          :
Online        : True
RestartNeeded : False

Alternatively, OpenSSH Client can be enabled using DISM as below:

dism /Online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0
Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Image Version: 10.0.19044.1706

[==========================100.0%==========================]
The operation completed successfully.

Install OpenSSH Client using Windows Settings

If you don’t want to do it using PowerShell. You can enable it from Windows Settings.

1️⃣ Open Settings -> Apps -> Manage optional features.

Bg434

2️⃣ Select +Add features.

Bg435

3️⃣ Search for OpenSSH client in the list and click Install button.

Bg436

Connect to a remote system with SSH

OpenSSH binary files are located in C:\Windows\System32\OpenSSH\.

  • ssh.exe – the SSH client executable;
  • scp.exe – tool for copying files in an SSH session;
  • ssh-keygen.exe – tool to generate RSA SSH authentication keys;
  • ssh-agent.exe – used to manage RSA keys;
  • ssh-add.exe – adds a key to the SSH agent database.
PS C:\WINDOWS\system32\OpenSSH> dir

    Directory: C:\WINDOWS\system32\OpenSSH

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----          1/8/2022   4:09 PM         307712 scp.exe
-a----          1/8/2022   4:09 PM         374272 sftp.exe
-a----          1/8/2022   4:09 PM         481280 ssh-add.exe
-a----          1/8/2022   4:09 PM         382976 ssh-agent.exe
-a----          1/8/2022   4:09 PM         662016 ssh-keygen.exe
-a----          1/8/2022   4:09 PM         557568 ssh-keyscan.exe
-a----          1/8/2022   4:09 PM         946176 ssh.exe

Once done, now we can use the Windows PowerShell to connect to a Linux machine using SSH natively.

Note Related: How to use OpenSSH Client to connect to a Linux machine.
ssh <username>@<host_ip_address>

# For example:
ssh [email protected]

When you connect to a machine using SSH. For the first time you will need to accept the host’s key. Just type yes then hit Enter.

PS C:\> ssh [email protected]

The authenticity of host '10.10.6.22 (10.10.6.22)' can't be established.
ECDSA key fingerprint is SHA256:PeU7o9cNTIhcNPGtYOOPXs/p8b4WfMLJ752yMUPO/Ts.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added 10.10.6.22' (ECDSA) to the list of known hosts.
[email protected] password:
Last login: Mon May 30 02:36:11 2022 from 20.232.18.206

If you have SSH running on a different port than the default port 22, then you can change the port number with the -p flag:

beUuNQP0Mf8DyCqVwFoQyGrRrQHwLJVWb3JYi2Q0v1CGye3TEzL1gcKbn9aJ
5/5 - (1 vote)
Previous Post

How To Connect To a Linux Machine Using PowerShell With SSH

Next Post

How to Connect to a Remote Server Over SSH using PuTTY

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory