Git + SSH Client Setup

In this article, we shall setup SSH client on Windows machine.

What we need ?
  • Git
  • PowerShell (Optional)
  • Command Prompt (Optional)

Let us get started with the setup.

Silent / UnAttended Install :: Using PowerShell

To download & install git in silent / un-attended mode, execute the below commands

1
2
3
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://github.com/git-for-windows/git/releases/download/v2.20.0.windows.1/Git-2.20.0-64-bit.exe -OutFile gitbin.exe
cmd "/C .\gitbin.exe /SP- /SILENT /NOCANCEL /NORESTART /COMPONENTS=icons,ext\reg\shellhere,assoc,assoc_sh"

Add git & ssh to your path without closing and re-launching PowerShell.

1
2
$env:Path="$env:Path;C:\Program Files\Git\bin\;"
$env:Path="$env:Path;C:\Program Files\Git\usr\bin\;"