Downloads:
212,816
Downloads of v 2016.02.25.20150310:
664
Last Update:
10 Mar 2016
Package Maintainer(s):
Software Author(s):
- Microsoft
Tags:
win32-openssh admin- Software Specific:
- Software Site
- Software Source
- Software License
- Software Docs
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Win32 OpenSSH (Microsoft Port)
This is not the latest version of Win32 OpenSSH (Microsoft Port) available.
- 1
- 2
- 3
2016.02.25.20150310 | Updated: 10 Mar 2016
- Software Specific:
- Software Site
- Software Source
- Software License
- Software Docs
- Software Issues
- Package Specific:
- Package Source
- Package outdated?
- Package broken?
- Contact Maintainers
- Contact Site Admins
- Software Vendor?
- Report Abuse
- Download
Downloads:
212,816
Downloads of v 2016.02.25.20150310:
664
Maintainer(s):
Software Author(s):
- Microsoft
Win32 OpenSSH (Microsoft Port) 2016.02.25.20150310
This is not the latest version of Win32 OpenSSH (Microsoft Port) available.
Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Microsoft. The inclusion of Microsoft trademark(s), if any, upon this webpage is solely to identify Microsoft goods or services and not for commercial purposes.
- 1
- 2
- 3
Some Checks Have Failed or Are Not Yet Complete
Not All Tests Have Passed
Validation Testing Passed
Verification Testing Passed
DetailsScan Testing Resulted in Flagged:
This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.
We recommend clicking the "Details" link to make your own decision on installing this package.
Deployment Method: Individual Install, Upgrade, & Uninstall
To install Win32 OpenSSH (Microsoft Port), run the following command from the command line or from PowerShell:
To upgrade Win32 OpenSSH (Microsoft Port), run the following command from the command line or from PowerShell:
To uninstall Win32 OpenSSH (Microsoft Port), run the following command from the command line or from PowerShell:
Deployment Method:
This applies to both open source and commercial editions of Chocolatey.
1. Enter Your Internal Repository Url
(this should look similar to https://community.chocolatey.org/api/v2/)
2. Setup Your Environment
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment
Option 1: Cached Package (Unreliable, Requires Internet - Same As Community)-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
-
Download the package:
Download - Follow manual internalization instructions
-
-
Package Internalizer (C4B)
-
Run: (additional options)
choco download win32-openssh --internalize --version=2016.02.25.20150310 --source=https://community.chocolatey.org/api/v2/
-
For package and dependencies run:
choco push --source="'INTERNAL REPO URL'"
- Automate package internalization
-
Run: (additional options)
3. Copy Your Script
choco upgrade win32-openssh -y --source="'INTERNAL REPO URL'" --version="'2016.02.25.20150310'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade win32-openssh -y --source="'INTERNAL REPO URL'" --version="'2016.02.25.20150310'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Install win32-openssh
win_chocolatey:
name: win32-openssh
version: '2016.02.25.20150310'
source: INTERNAL REPO URL
state: present
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
chocolatey_package 'win32-openssh' do
action :install
source 'INTERNAL REPO URL'
version '2016.02.25.20150310'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
cChocoPackageInstaller win32-openssh
{
Name = "win32-openssh"
Version = "2016.02.25.20150310"
Source = "INTERNAL REPO URL"
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'win32-openssh':
ensure => '2016.02.25.20150310',
provider => 'chocolatey',
source => 'INTERNAL REPO URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
4. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
This package was approved by moderator ferventcoder on 10 Mar 2016.
Open SSH tools for Windows.
This is the Microsoft PowerShell Team's recent port.
Works in all CLIs and does not require .NET.
Includes the following tools:
* ssh.exe
* ssh-add.exe
* ssh-agent.exe
* ssh-keygen.exe
* ssh-keyscan.exe
* ssh-keysign.exe
* ssh-pkcs11-helper.exe
* scp.exe
* sftp.exe
* sshd.exe (server)
* sftp-server.exe
This package performs the following operations that you normally have to hack at until you get what you want:
* Install Appropriate Bitness for the version of Windows
* Install to Program Files (malware protection and following advice of dev team)
* Add SSH location to System PATH
* Optionally install sshd windows service (Requires parameter - see below)
* Optionally install sshd server "key based authentication" (Requires parameter - see below)
* Cleanly uninstall all of the above (removing config files and server keys requires special switch - see below)
The package also attempts to keep you out of trouble when configuring the sshd service:
* Will not install sshd server if an different sshd server is already running
* Will not delete server keys on uninstall or reinstall (unless you override with switch below)
* Will not upgrade or uninstall if the service is running and you did not specify /SSHServerFeature (you forget about the service on a machine where you want to upgrade the client tools)
* If you use the server's Key Based Authentication feature, install and uninstall behave differently to account for the integration of this component
This package supports the following parameters:
-params '"/SSHServerFeature"' (Install and Uninstall)
Also install sshd Windows Service - including opening port 22.
If this parameter is not included on an upgrade or uninstall and
the sshd server is installed - an error is generated. You must
use this switch to indicate you have made preparations for the
sshd service to be interrupted or removed.
-params '"/SSHServerFeature /KeyBasedAuthenticationFeature"'
Also install sshd Windows Service - including opening port 22 and
it with Key Based Authentication (reboot required before active)
-params '"/DeleteConfigAndServerKeys"' (Uninstall)
By default an uninstall does not remove config files nor server keys.
$ErrorActionPreference = 'Stop'; # stop on all errors
$packageName= 'win32-openssh'
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$OSBits = Get-ProcessorBits
#On 64-bit, always favor 64-bit Program Files no matter what our execution is now (works back past XP / Server 2003)
If ($env:ProgramFiles.contains('x86'))
{
$PF = $env:ProgramFiles.replace(' (x86)','')
}
Else
{
$PF = $env:ProgramFiles
}
$filename = "$toolsdir\OpenSSH-Win$($OSBits).zip"
$TargetFolder = "$PF\OpenSSH-Win$($OSBits)"
# Default the values
$SSHServerFeature = $false
$KeyBasedAuthenticationFeature = $false
$arguments = @{};
$packageParameters = $env:chocolateyPackageParameters;
# Now parse the packageParameters using good old regular expression
if ($packageParameters) {
$match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
#"
$option_name = 'option'
$value_name = 'value'
if ($packageParameters -match $match_pattern ){
$results = $packageParameters | Select-String $match_pattern -AllMatches
$results.matches | % {
$arguments.Add(
$_.Groups[$option_name].Value.Trim(),
$_.Groups[$value_name].Value.Trim())
}
}
else
{
throw "Package Parameters were found but were invalid (REGEX Failure)"
}
if ($arguments.ContainsKey("SSHServerFeature")) {
Write-Host "/SSHServerFeature - Uninstalling SSH Server Feature if Present."
$SSHServerFeature = $true
}
if ($arguments.ContainsKey("DeleteConfigAndServerKeys")) {
Write-Host "/DeleteConfigAndServerKeys - Removing SSH Config and Server Keys."
$DeleteConfigAndServerKeys = $true
}
} else {
Write-Debug "No Package Parameters Passed in";
}
$SSHServiceInstanceExistsAndIsOurs = ([bool]((Get-WmiObject win32_service | ?{$_.Name -ilike 'sshd'} | select -expand PathName) -ilike "*$TargetFolder*"))
If ($SSHServerFeature -AND (!$SSHServiceInstanceExistsAndIsOurs) -AND (Get-Service sshd -ErrorAction SilentlyContinue))
{
$ExistingSSHDInstancePath = (Get-WmiObject win32_service | ?{$_.Name -ilike 'sshd'} | select -expand PathName)
Throw "You have requested that the SSHD service be uninstalled, but this system appears to have an instance of an SSHD service configured for another folder ($ExistingSSHDInstancePath). Ignoring /SSHServerFeature"
$SSHServerFeature = $False
}
If ((!$SSHServerFeature) -AND $SSHServiceInstanceExistsAndIsOurs)
{
Throw "There is a configured instance of the SSHD service, please specify the /SSHServerFeature to confirm it is OK to UNINSTALL the SSHD service at this time."
}
If ([bool](get-process ssh -erroraction silentlycontinue | where {$_.Path -ilike "*$TargetPath*"}))
{
Throw "It appears you have instances of ssh.exe (client) running from the folder this package installs to, please terminate them and try again."
}
If ($SSHServiceInstanceExistsAndIsOurs -AND ([bool](Get-Service SSHD -ErrorAction SilentlyContinue | where {$_.Status -ieq 'Running'})))
{
#Shutdown and unregister service for upgrade
Stop-Service SSHD -Force
Start-Sleep -seconds 3
If (!([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))
{
Throw "Could not stop the SSHD service, please stop manually and retry this package."
}
}
If ((get-item 'Registry::HKLM\System\CurrentControlSet\Control\Lsa').getvalue("authentication packages") -contains 'msv1_0\0ssh-lsa.dll')
{
$KeyBasedAuthenticationFeatureINSTALLED = $True
}
If ($SSHServiceInstanceExistsAndIsOurs -AND ([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))
{
#Shutdown and unregister service for upgrade
Stop-Service SSHD -Force
Start-Sleep -seconds 5
If (!([bool](Get-Service SSHD | where {$_.Status -ieq 'Running'})))
{
Throw "Could not stop the SSHD service, please stop manually and retry this package."
}
}
If ($SSHServiceInstanceExistsAndIsOurs -AND ($SSHServerFeature))
{
start-process "$TargetFolder\sshd.exe" -ArgumentList 'uninstall' -nonewwindow -wait
}
If ($KeyBasedAuthenticationFeatureINSTALLED)
{
If (Test-Path "$env:windir\sysnative")
{ #We are running in a 32-bit process under 64-bit Windows
$sys32dir = "$env:windir\sysnative"
}
Else
{ #We are on a 32-bit OS, or 64-bit proc on 64-bit OS
$sys32dir = "$env:windir\system32"
}
$AuthpkgToRemove = 'msv1_0\0ssh-lsa.dll'
foreach ($authpackage in (get-item 'Registry::HKLM\System\CurrentControlSet\Control\Lsa').getvalue("authentication packages"))
{
If ($authpackage)
{
If ($authpackage -ine "$AuthpkgToRemove")
{
[string[]]$Newauthpackages += "$authpackage"
}
}
}
Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\" "Authentication Packages" $Newauthpackages
del "$sys32dir\ssh-lsa.dll" -force
}
#Don't remove config in case they reinstall.
If ($DeleteConfigAndServerKeys)
{
Write-Warning "Removing all config and server keys as requested by /DeleteConfigAndServerKeys"
Remove-Item "$TargetFolder\*" -Recurse -Force
}
Else
{
Remove-Item "$TargetFolder\*.*" -include *.exe,*.dll,*.cmd -Recurse -Force
Write-Warning "NOT REMOVED: Config files and any keys in `"$TargetFolder`" were NOT REMOVED - you must remove them manually or use the package uninstall parameter /DeleteConfigAndServerKeys."
}
netsh advfirewall firewall delete rule name='SSHD Port win32-openssh'
$PathToRemove = "$TargetFolder"
foreach ($path in [Environment]::GetEnvironmentVariable("PATH","Machine").split(';'))
{
If ($Path)
{
If (($path -ine "$PathToRemove") -AND ($path -ine "$PathToRemove\"))
{
[string[]]$Newpath += "$path"
}
}
}
$AssembledNewPath = ($newpath -join(';')).trimend(';')
[Environment]::SetEnvironmentVariable("PATH",$AssembledNewPath,"Machine")
md5: E26DCA743619731F3FD123A66A14584C | sha1: B8DB30A51306D4748FFC47B60FCA0581E31D49AB | sha256: 0B732B52BCE09D76D398B0A14C1C39E6398853B4F6B705B44EC4D7C2A9A5A490 | sha512: 9CE6FC9EBC0328A959AD89E3B4AAF4D483B3ED2AD54201AE9462C4B6A8AF0844C5FC47C88DCB805928F86723DD5E3CD90F2BB733DA00C39506EC2E80C3FBD63A
md5: 0C162AC5CD549D8183B4A78EABB4D832 | sha1: B442E88BB955462F7648A52889FF8E4F721BE649 | sha256: E0560EB4DAE88EC7E2242141E8B8E78E562FA0CBAF0C3B867ECE741DEE003E64 | sha512: 395312F57428CDBEDF7D1D84B1571067BC1D451E3041EF38C0D6031BB5F63DAC1A0C6E7DAF911F397C51803B8C982AB0B38498A07753DB5F9E4A324883FF3D83
Log in or click on link to see number of positives.
- OpenSSH-Win32.zip (0b732b52bce0) - ## / 57
- OpenSSH-Win64.zip (e0560eb4dae8) - ## / 54
- scp.exe (f4f3e42537a1) - ## / 56
- sftp-server.exe (c5436a0c938e) - ## / 56
- sftp.exe (91086a30e4d2) - ## / 56
- ssh-add.exe (7cc74620cbb7) - ## / 56
- ssh-agent.exe (f1196d3e65c9) - ## / 56
- ssh-keygen.exe (1a7ac55b6380) - ## / 56
- ssh-lsa.dll (ff0e306847a9) - ## / 56
- ssh.exe (f423c3b712e2) - ## / 57
- sshd.exe (78d2a3d8c0eb) - ## / 56
- scp.exe (c74ca42f14de) - ## / 57
- sftp-server.exe (e48107c94da7) - ## / 57
- sftp.exe (cc8ffb4b8171) - ## / 57
- ssh-add.exe (0ed8f971c6b0) - ## / 57
- ssh-agent.exe (304970a3de9f) - ## / 57
- ssh-keygen.exe (51da14d4499e) - ## / 57
- ssh-lsa.dll (8e137b250daa) - ## / 57
- ssh.exe (f73c17cc5838) - ## / 56
- sshd.exe (a5d0e550f63a) - ## / 56
- win32-openssh.2016.02.25.20150310.nupkg (26f424600534) - ## / 57
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Add to Builder | Version | Downloads | Last Updated | Status |
---|---|---|---|---|
[DEPRECATED] Win32 OpenSSH (Microsoft Port) 2016.05.30.20160922 | 27442 | Thursday, September 22, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.05.30.20160908 | 24394 | Saturday, September 10, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.05.30.20160902 | 12449 | Saturday, September 3, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.05.30.20160827 | 9060 | Saturday, August 27, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.05.30.20160807 | 6195 | Thursday, August 11, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.05.30 | 12498 | Saturday, June 4, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.05.15 | 645 | Wednesday, May 18, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.04.05 | 115812 | Wednesday, April 6, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.03.19 | 905 | Sunday, March 20, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.02.25.20150315 | 667 | Tuesday, March 15, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.02.25.20150310 | 664 | Thursday, March 10, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2016.02.25 | 751 | Sunday, February 28, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 2015.12.22 | 729 | Monday, February 15, 2016 | Approved | |
Win32 OpenSSH (Microsoft Port) 0.0.0.9 | 520 | Sunday, September 18, 2016 | Approved |
Microsoft
None
This package has no dependencies.
Ground Rules:
- This discussion is only about Win32 OpenSSH (Microsoft Port) and the Win32 OpenSSH (Microsoft Port) package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or Win32 OpenSSH (Microsoft Port), or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.