Avail Open-ssh on Windows

Background

Reading up more on AWS and wanted to review available options for connecting to EC2 instances.

There are a few pathways such as SSH ( Linus & Windows ), Remote Desktop ( Windows ), and API.

SSH Client

On MS Windows, Putty is the most popular SSH Client.

Starting with MS Window 10 Build 1809, Microsoft offers a built-in option via packaging in Open-SSH.

Open-SSH Client

Outline

  1. Add MS Windows Feature
    • Determine MS Windows Version
    • If Windows 10, Build 1809
      • Add feature
        • GUI
        • Command Line
  2. Manual
    • PowerShell/Win32-OpenSSH
      • Download

 

Add MS Windows Feature

Get MS Windows Version

winver
Syntax

winver

Output

Explanation
  1. Version
    • Our Version Number is 1607
    • OS Build 14393.2969
    • Windows 10 Enterprise 2016 LTSB
  2. To use integrated install, we need to be on Build 1809

 

Add Feature OpenSSH

GUI
Outline
  1. Access Control Panel
  2. Access Programs and Features Applet
  3. Turn Windows Features On and Off
  4. Select OpenSSH Client
Screen Shot
Explanation

We are on MS Windows Build 1809, and we can clearly see that “OpenSSH” is not offered.

Powershell WindowsCapability
Outline
  1. Issue Powershell Get-WindowsCapability
  2. If SSH is listed, issue Powershell Add-WindowsCapability
Get Windows Capability – Syntax

powershell -Command "Get-WindowsCapability -Online | ? Name -like '*ssh*'"

Add Windows Capability – Syntax

powershell -Command "Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0"

Screen Shot
Screen Shot – Powershell Get-WindowsCapability

Screen Shot – Powershell Get-WindowsCapability – Output

Explanation

Since “Get-WindowsCapability” does not indicate that ssh packages are available, we will skip invoking the “Add-WindowsCapability“.

 

PowerShell/Win32-OpenSSH

Artifacts

The artifacts are here :-

https://github.com/PowerShell/Win32-OpenSSH/releases
Link

Current Version

Our current version is v7.9

Listing

Explanation
  1. Our OS is 64 bit and so we will go with Win64 files
  2. Not going to be debugging OpenSSH and so will skip files that bore Symbols in their name
  3. Our file is OpenSSH-Win64.zip

Download & Unpack

Please download OpenSSH*.zip and unpack it.

File Listing

Extracted File

  1. ssh.exe
    • SSH Client
  2. sshd.exe
    • SSH Server

Use

Let us issue a couple of commands to make sure that we are able to use our downloaded open-ssh client.

Use -01
Syntax

ssh user@host

Sample

ssh dadeniji@hrdb

Output

Summary

If one is on the latest MS Windows 10, one is able to quickly integrate OpenSSH.

On the other hand, if on an earlier OS or version prior to Windows 10  Build 1809, please download the artifacts, unpack it, and run the unpacked files.

 

Reference

  1. Microsoft
    • Docs / Windows Server / Management / Manage Windows Server systems and environments / Manage Windows with OpenSSH / Getting started with OpenSSH
      • Installation of OpenSSH For Windows Server 2019 and Windows 10
        Link
  2. PowerShell/Win32-OpenSSH
    • PowerShell/Win32-OpenSSH – Releases
      Link

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s