|
2023-12-30 15:42:10,636 1936 [DEBUG] - XmlConfiguration is now operational
|
|
2023-12-30 15:42:10,885 1936 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,885 1936 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,917 1936 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,933 1936 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,933 1936 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,948 1936 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,964 1936 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,964 1936 [DEBUG] - Adding new type 'RubyGemsService' for type 'IListSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,979 1936 [DEBUG] - Adding new type 'RubyGemsService' for type 'IInstallSourceRunner' from assembly 'choco'
|
|
2023-12-30 15:42:10,979 1936 [DEBUG] - Adding new type 'SystemStateValidation' for type 'IValidation' from assembly 'choco'
|
|
2023-12-30 15:42:10,994 1936 [DEBUG] - Adding new type 'CacheFolderLockdownValidation' for type 'IValidation' from assembly 'choco'
|
|
2023-12-30 15:42:12,323 1936 [DEBUG] - Adding new type 'EmptyOrInvalidUrlMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,339 1936 [DEBUG] - Adding new type 'FrameWorkReferencesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,339 1936 [DEBUG] - Adding new type 'IconMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,367 1936 [DEBUG] - Adding new type 'LicenseMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,370 1936 [DEBUG] - Adding new type 'PackageTypesMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,370 1936 [DEBUG] - Adding new type 'ReadmeMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,386 1936 [DEBUG] - Adding new type 'RepositoryMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,386 1936 [DEBUG] - Adding new type 'RequireLicenseAcceptanceMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,403 1936 [DEBUG] - Adding new type 'ServicableMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,403 1936 [DEBUG] - Adding new type 'VersionMetadataRule' for type 'IMetadataRule' from assembly 'choco'
|
|
2023-12-30 15:42:12,464 1936 [DEBUG] - Registering new command 'cache' in assembly 'choco'
|
|
2023-12-30 15:42:12,489 1936 [DEBUG] - Registering new command 'list' in assembly 'choco'
|
|
2023-12-30 15:42:12,496 1936 [DEBUG] - Registering new command 'template' in assembly 'choco'
|
|
2023-12-30 15:42:12,512 1936 [DEBUG] - Registering new command 'export' in assembly 'choco'
|
|
2023-12-30 15:42:12,512 1936 [DEBUG] - Registering new command 'info' in assembly 'choco'
|
|
2023-12-30 15:42:12,532 1936 [DEBUG] - Registering new command 'help' in assembly 'choco'
|
|
2023-12-30 15:42:12,559 1936 [DEBUG] - Registering new command 'config' in assembly 'choco'
|
|
2023-12-30 15:42:12,559 1936 [DEBUG] - Registering new command 'feature' in assembly 'choco'
|
|
2023-12-30 15:42:12,576 1936 [DEBUG] - Registering new command 'new' in assembly 'choco'
|
|
2023-12-30 15:42:12,589 1936 [DEBUG] - Registering new command 'outdated' in assembly 'choco'
|
|
2023-12-30 15:42:12,589 1936 [DEBUG] - Registering new command 'pack' in assembly 'choco'
|
|
2023-12-30 15:42:12,619 1936 [DEBUG] - Registering new command 'pin' in assembly 'choco'
|
|
2023-12-30 15:42:12,619 1936 [DEBUG] - Registering new command 'push' in assembly 'choco'
|
|
2023-12-30 15:42:12,635 1936 [DEBUG] - Registering new command 'apikey' in assembly 'choco'
|
|
2023-12-30 15:42:12,651 1936 [DEBUG] - Registering new command 'source' in assembly 'choco'
|
|
2023-12-30 15:42:12,651 1936 [DEBUG] - Registering new command 'uninstall' in assembly 'choco'
|
|
2023-12-30 15:42:12,673 1936 [DEBUG] - Registering new command 'upgrade' in assembly 'choco'
|
|
2023-12-30 15:42:12,673 1936 [DEBUG] - Registering new command 'search' in assembly 'choco'
|
|
2023-12-30 15:42:12,684 1936 [DEBUG] - Registering new command 'unpackself' in assembly 'choco'
|
|
2023-12-30 15:42:12,701 1936 [DEBUG] - Registering new command 'install' in assembly 'choco'
|
|
2023-12-30 15:42:13,181 1936 [INFO ] - ============================================================
|
|
2023-12-30 15:42:13,807 1936 [INFO ] - Chocolatey v2.2.2
|
|
2023-12-30 15:42:13,875 1936 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
|
|
2023-12-30 15:42:13,917 1936 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
|
|
2023-12-30 15:42:13,949 1936 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
|
|
2023-12-30 15:42:14,041 1936 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" install openssh --version 9.1.0-beta1 -fdvy --execution-timeout=2700 --allow-downgrade
|
|
2023-12-30 15:42:14,060 1936 [DEBUG] - Received arguments: install openssh --version 9.1.0-beta1 -fdvy --execution-timeout=2700 --allow-downgrade
|
|
2023-12-30 15:42:14,401 1936 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
|
|
2023-12-30 15:42:14,464 1936 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
|
|
2023-12-30 15:42:14,539 1936 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
|
|
2023-12-30 15:42:14,996 1936 [DEBUG] - Performing validation checks.
|
|
2023-12-30 15:42:15,041 1936 [DEBUG] - Global Configuration Validation Checks:
|
|
2023-12-30 15:42:15,056 1936 [DEBUG] - - Package Exit Code / Exit On Reboot = Checked
|
|
2023-12-30 15:42:15,089 1936 [DEBUG] - System State Validation Checks:
|
|
2023-12-30 15:42:15,120 1936 [DEBUG] - Reboot Requirement Checks:
|
|
2023-12-30 15:42:15,151 1936 [DEBUG] - - Pending Computer Rename = Checked
|
|
2023-12-30 15:42:15,166 1936 [DEBUG] - - Pending Component Based Servicing = Checked
|
|
2023-12-30 15:42:15,181 1936 [DEBUG] - - Pending Windows Auto Update = Checked
|
|
2023-12-30 15:42:15,181 1936 [DEBUG] - - Pending File Rename Operations = Ignored
|
|
2023-12-30 15:42:15,197 1936 [DEBUG] - - Pending Windows Package Installer = Checked
|
|
2023-12-30 15:42:15,213 1936 [DEBUG] - - Pending Windows Package Installer SysWow64 = Checked
|
|
2023-12-30 15:42:15,228 1936 [DEBUG] - Cache Folder Lockdown Checks:
|
|
2023-12-30 15:42:15,244 1936 [DEBUG] - - Elevated State = Checked
|
|
2023-12-30 15:42:15,259 1936 [DEBUG] - - Folder Exists = Checked
|
|
2023-12-30 15:42:15,275 1936 [DEBUG] - - Folder lockdown = Checked
|
|
2023-12-30 15:42:15,291 1936 [INFO ] - 3 validations performed. 3 success(es), 0 warning(s), and 0 error(s).
|
|
2023-12-30 15:42:15,385 1936 [DEBUG] - The source 'c:\cached-packages;https://community.chocolatey.org/api/v2/' evaluated to a 'normal' source type
|
|
2023-12-30 15:42:15,418 1936 [DEBUG] -
|
|
NOTE: Hiding sensitive configuration data! Please double and triple
|
|
check to be sure no sensitive data is shown, especially if copying
|
|
output to a gist for review.
|
|
2023-12-30 15:42:15,547 1936 [DEBUG] - Configuration: CommandName='install'|
|
|
CacheLocation='C:\Users\vagrant\AppData\Local\Temp\chocolatey'|
|
|
CommandExecutionTimeoutSeconds='2700'|WebRequestTimeoutSeconds='30'|
|
|
Sources='c:\cached-packages;https://community.chocolatey.org/api/v2/'|
|
|
SourceType='normal'|ShowOnlineHelp='False'|Debug='True'|Verbose='True'|
|
|
Trace='False'|Force='True'|Noop='False'|HelpRequested='False'|
|
|
UnsuccessfulParsing='False'|RegularOutput='True'|QuietOutput='False'|
|
|
PromptForConfirmation='False'|DisableCompatibilityChecks='False'|
|
|
AcceptLicense='True'|AllowUnofficialBuild='False'|Input='openssh'|
|
|
Version='9.1.0-beta1'|AllVersions='False'|
|
|
SkipPackageInstallProvider='False'|SkipHookScripts='False'|
|
|
PackageNames='openssh'|Prerelease='False'|ForceX86='False'|
|
|
OverrideArguments='False'|NotSilent='False'|
|
|
ApplyPackageParametersToDependencies='False'|
|
|
ApplyInstallArgumentsToDependencies='False'|IgnoreDependencies='False'|
|
|
CacheExpirationInMinutes='30'|AllowDowngrade='True'|
|
|
ForceDependencies='False'|PinPackage='False'|
|
|
Information.PlatformType='Windows'|
|
|
Information.PlatformVersion='10.0.17763.0'|
|
|
Information.PlatformName='Windows Server 2016'|
|
|
Information.ChocolateyVersion='2.2.2.0'|
|
|
Information.ChocolateyProductVersion='2.2.2'|
|
|
Information.FullName='choco, Version=2.2.2.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'|
|
|
|
|
Information.Is64BitOperatingSystem='True'|
|
|
Information.Is64BitProcess='True'|Information.IsInteractive='False'|
|
|
Information.UserName='vagrant'|
|
|
Information.UserDomainName='WIN-1FSTBHT10UQ'|
|
|
Information.IsUserAdministrator='True'|
|
|
Information.IsUserSystemAccount='False'|
|
|
Information.IsUserRemoteDesktop='False'|
|
|
Information.IsUserRemote='True'|
|
|
Information.IsProcessElevated='True'|
|
|
Information.IsLicensedVersion='False'|
|
|
Information.IsLicensedAssemblyLoaded='False'|
|
|
Information.LicenseType='Foss'|
|
|
Information.CurrentDirectory='C:\Users\vagrant'|
|
|
Features.AutoUninstaller='True'|Features.ChecksumFiles='True'|
|
|
Features.AllowEmptyChecksums='False'|
|
|
Features.AllowEmptyChecksumsSecure='True'|
|
|
Features.FailOnAutoUninstaller='False'|
|
|
Features.FailOnStandardError='False'|Features.UsePowerShellHost='True'|
|
|
Features.LogEnvironmentValues='True'|Features.LogWithoutColor='False'|
|
|
Features.VirusCheck='False'|
|
|
Features.FailOnInvalidOrMissingLicense='False'|
|
|
Features.IgnoreInvalidOptionsSwitches='True'|
|
|
Features.UsePackageExitCodes='True'|
|
|
Features.UseEnhancedExitCodes='False'|
|
|
Features.UseFipsCompliantChecksums='False'|
|
|
Features.ShowNonElevatedWarnings='True'|
|
|
Features.ShowDownloadProgress='False'|
|
|
Features.StopOnFirstPackageFailure='False'|
|
|
Features.UseRememberedArgumentsForUpgrades='False'|
|
|
Features.IgnoreUnfoundPackagesOnUpgradeOutdated='False'|
|
|
Features.SkipPackageUpgradesWhenNotInstalled='False'|
|
|
Features.RemovePackageInformationOnUninstall='False'|
|
|
Features.ExitOnRebootDetected='False'|
|
|
Features.LogValidationResultsOnWarnings='True'|
|
|
Features.UsePackageRepositoryOptimizations='True'|
|
|
ListCommand.LocalOnly='False'|ListCommand.IdOnly='False'|
|
|
ListCommand.IncludeRegistryPrograms='False'|ListCommand.PageSize='25'|
|
|
ListCommand.Exact='False'|ListCommand.ByIdOnly='False'|
|
|
ListCommand.ByTagOnly='False'|ListCommand.IdStartsWith='False'|
|
|
ListCommand.OrderByPopularity='False'|ListCommand.ApprovedOnly='False'|
|
|
ListCommand.DownloadCacheAvailable='False'|
|
|
ListCommand.NotBroken='False'|
|
|
ListCommand.IncludeVersionOverrides='False'|
|
|
ListCommand.ExplicitPageSize='False'|
|
|
ListCommand.ExplicitSource='False'|
|
|
UpgradeCommand.FailOnUnfound='False'|
|
|
UpgradeCommand.FailOnNotInstalled='False'|
|
|
UpgradeCommand.NotifyOnlyAvailableUpgrades='False'|
|
|
UpgradeCommand.ExcludePrerelease='False'|
|
|
NewCommand.AutomaticPackage='False'|
|
|
NewCommand.UseOriginalTemplate='False'|SourceCommand.Command='unknown'|
|
|
SourceCommand.Priority='0'|SourceCommand.BypassProxy='False'|
|
|
SourceCommand.AllowSelfService='False'|
|
|
SourceCommand.VisibleToAdminsOnly='False'|
|
|
FeatureCommand.Command='unknown'|ConfigCommand.Command='Unknown'|
|
|
ApiKeyCommand.Command='Unknown'|PinCommand.Command='Unknown'|
|
|
OutdatedCommand.IgnorePinned='False'|
|
|
ExportCommand.IncludeVersionNumbers='False'|Proxy.BypassOnLocal='True'|
|
|
TemplateCommand.Command='unknown'|CacheCommand.Command='Unknown'|
|
|
CacheCommand.RemoveExpiredItemsOnly='False'|
|
|
2023-12-30 15:42:15,574 1936 [DEBUG] - _ Chocolatey:ChocolateyInstallCommand - Normal Run Mode _
|
|
2023-12-30 15:42:15,604 1936 [INFO ] - Installing the following packages:
|
|
2023-12-30 15:42:15,619 1936 [INFO ] - openssh
|
|
2023-12-30 15:42:15,635 1936 [INFO ] - By installing, you accept licenses for the packages.
|
|
2023-12-30 15:42:15,665 1936 [DEBUG] - Current environment values (may contain sensitive data):
|
|
2023-12-30 15:42:15,665 1936 [DEBUG] - * 'Path'='C:\Users\vagrant\AppData\Local\Microsoft\WindowsApps;' ('User')
|
|
2023-12-30 15:42:15,682 1936 [DEBUG] - * 'TEMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
|
|
2023-12-30 15:42:15,682 1936 [DEBUG] - * 'TMP'='C:\Users\vagrant\AppData\Local\Temp' ('User')
|
|
2023-12-30 15:42:15,700 1936 [DEBUG] - * 'ChocolateyLastPathUpdate'='133484165807131239' ('User')
|
|
2023-12-30 15:42:15,700 1936 [DEBUG] - * 'ComSpec'='C:\Windows\system32\cmd.exe' ('Machine')
|
|
2023-12-30 15:42:15,712 1936 [DEBUG] - * 'DriverData'='C:\Windows\System32\Drivers\DriverData' ('Machine')
|
|
2023-12-30 15:42:15,712 1936 [DEBUG] - * 'OS'='Windows_NT' ('Machine')
|
|
2023-12-30 15:42:15,728 1936 [DEBUG] - * 'Path'='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;' ('Machine')
|
|
2023-12-30 15:42:15,728 1936 [DEBUG] - * 'PATHEXT'='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' ('Machine')
|
|
2023-12-30 15:42:15,744 1936 [DEBUG] - * 'PROCESSOR_ARCHITECTURE'='AMD64' ('Machine')
|
|
2023-12-30 15:42:15,744 1936 [DEBUG] - * 'PSModulePath'='C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules' ('Machine')
|
|
2023-12-30 15:42:15,761 1936 [DEBUG] - * 'TEMP'='C:\Windows\TEMP' ('Machine')
|
|
2023-12-30 15:42:15,761 1936 [DEBUG] - * 'TMP'='C:\Windows\TEMP' ('Machine')
|
|
2023-12-30 15:42:15,775 1936 [DEBUG] - * 'USERNAME'='SYSTEM' ('Machine')
|
|
2023-12-30 15:42:15,775 1936 [DEBUG] - * 'windir'='C:\Windows' ('Machine')
|
|
2023-12-30 15:42:15,793 1936 [DEBUG] - * 'NUMBER_OF_PROCESSORS'='10' ('Machine')
|
|
2023-12-30 15:42:15,793 1936 [DEBUG] - * 'PROCESSOR_LEVEL'='6' ('Machine')
|
|
2023-12-30 15:42:15,807 1936 [DEBUG] - * 'PROCESSOR_IDENTIFIER'='Intel64 Family 6 Model 85 Stepping 7, GenuineIntel' ('Machine')
|
|
2023-12-30 15:42:15,807 1936 [DEBUG] - * 'PROCESSOR_REVISION'='5507' ('Machine')
|
|
2023-12-30 15:42:15,822 1936 [DEBUG] - * 'ChocolateyInstall'='C:\ProgramData\chocolatey' ('Machine')
|
|
2023-12-30 15:42:16,744 1936 [DEBUG] - Running list with the following filter = ''
|
|
2023-12-30 15:42:16,771 1936 [DEBUG] - --- Start of List ---
|
|
2023-12-30 15:42:16,869 1936 [DEBUG] - Resolving resource PackageSearchResource for source C:\ProgramData\chocolatey\lib
|
|
2023-12-30 15:42:17,806 1936 [DEBUG] - chocolatey 2.2.2
|
|
2023-12-30 15:42:17,857 1936 [DEBUG] - chocolatey-windowsupdate.extension 1.0.5
|
|
2023-12-30 15:42:17,873 1936 [DEBUG] - KB2919355 1.0.20160915
|
|
2023-12-30 15:42:17,884 1936 [DEBUG] - KB2919442 1.0.20160915
|
|
2023-12-30 15:42:17,900 1936 [DEBUG] - KB2999226 1.0.20181019
|
|
2023-12-30 15:42:17,932 1936 [DEBUG] - KB3035131 1.0.3
|
|
2023-12-30 15:42:17,949 1936 [DEBUG] - KB3118401 1.0.5
|
|
2023-12-30 15:42:18,009 1936 [DEBUG] - virtualbox-guest-additions-guest.install 7.0.12
|
|
2023-12-30 15:42:18,034 1936 [DEBUG] - --- End of List ---
|
|
2023-12-30 15:42:18,072 1936 [DEBUG] - Resolving resource PackageMetadataResource for source c:\cached-packages
|
|
2023-12-30 15:42:19,150 1936 [DEBUG] - Resolving resource PackageMetadataResource for source https://community.chocolatey.org/api/v2/
|
|
2023-12-30 15:42:20,417 1936 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='9.1.0-beta1')
|
|
2023-12-30 15:42:20,619 1936 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='9.1.0-beta1') 185ms
|
|
2023-12-30 15:42:20,931 1936 [DEBUG] - Resolving resource DependencyInfoResource for source c:\cached-packages
|
|
2023-12-30 15:42:22,150 1936 [DEBUG] - Resolving resource DependencyInfoResource for source https://community.chocolatey.org/api/v2/
|
|
2023-12-30 15:42:22,167 1936 [INFO ] - [NuGet] CACHE https://community.chocolatey.org/api/v2/Packages(Id='openssh',Version='9.1.0-beta1')
|
|
2023-12-30 15:42:22,556 1936 [INFO ] - [NuGet] Resolving dependency information took 0 ms
|
|
2023-12-30 15:42:22,593 1936 [DEBUG] - Resolving resource DownloadResource for source https://community.chocolatey.org/api/v2/
|
|
2023-12-30 15:42:22,775 1936 [DEBUG] - Attempting to delete file "".
|
|
2023-12-30 15:42:22,891 1936 [INFO ] - [NuGet] GET https://community.chocolatey.org/api/v2/package/openssh/9.1.0-beta1
|
|
2023-12-30 15:42:23,763 1936 [INFO ] - [NuGet] OK https://community.chocolatey.org/api/v2/package/openssh/9.1.0-beta1 839ms
|
|
2023-12-30 15:42:23,899 1936 [INFO ] - [NuGet] Acquiring lock for the installation of openssh 9.1.0-beta1
|
|
2023-12-30 15:42:24,087 1936 [INFO ] - [NuGet] Acquired lock for the installation of openssh 9.1.0-beta1
|
|
2023-12-30 15:42:28,996 1936 [INFO ] - [NuGet] Installed openssh 9.1.0-beta1 from https://community.chocolatey.org/api/v2/ with content hash 6QeeAKR23I8nrSAf/awdppg8iRPNIpko5Q17Foya5AIwLjIK/aF7nldcI+agJ4bWvmcXuj7WH6ATHlAn7qh4IA==.
|
|
2023-12-30 15:42:29,150 1936 [INFO ] - [NuGet] Adding package 'openssh.9.1.0-beta1' to folder 'C:\ProgramData\chocolatey\lib'
|
|
2023-12-30 15:42:29,511 1936 [INFO ] - [NuGet] Added package 'openssh.9.1.0-beta1' to folder 'C:\ProgramData\chocolatey\lib'
|
|
2023-12-30 15:42:29,527 1936 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/9.1.0-beta1\openssh.9.1.0-beta1.nupkg".
|
|
2023-12-30 15:42:29,527 1936 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/9.1.0-beta1\.nupkg.metadata".
|
|
2023-12-30 15:42:29,560 1936 [DEBUG] - Attempting to delete file "C:\Users\vagrant\AppData\Local\Temp\chocolatey\ChocolateyScratch\openssh/9.1.0-beta1\openssh.9.1.0-beta1.nupkg.sha512".
|
|
2023-12-30 15:42:29,588 1936 [INFO ] -
|
|
openssh v9.1.0-beta1 (forced)
|
|
2023-12-30 15:42:29,776 1936 [INFO ] - openssh package files install completed. Performing other installation steps.
|
|
2023-12-30 15:42:29,982 1936 [DEBUG] - Setting installer args for openssh
|
|
2023-12-30 15:42:29,996 1936 [DEBUG] - Setting package parameters for openssh
|
|
2023-12-30 15:42:30,026 1936 [DEBUG] - Contents of 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1':
|
|
2023-12-30 15:42:30,072 1936 [DEBUG] -
|
|
<#
|
|
ATTENTION: This code is used extensively to run under PowerShell 2.0 to update
|
|
images from RTM / SP1 source for Windows 7 and Server 2008 R2. It is also
|
|
used under Powershell Core to add OpenSSH to Nano. Test all enhancements and
|
|
fixes under these two specialty cases (speciality for Chocolatey packagers who are
|
|
likely up to the latest version on everything PowerShell).
|
|
#>
|
|
|
|
|
|
$ErrorActionPreference = 'Stop'; # stop on all errors
|
|
|
|
$ProductName = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'ProductName').ProductName
|
|
$EditionId = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name 'EditionID').EditionId
|
|
|
|
#This has to work for Win7 (no get-ciminstance) and Nano (no get-wmiobject) - each of which specially construct win32_operatingsystem.version to handle before and after Windows 10 version numbers (which are in different registry keys)
|
|
If ($psversiontable.psversion.major -lt 3)
|
|
{
|
|
$OSVersionString = (Get-WMIObject Win32_OperatingSystem).version
|
|
}
|
|
Else
|
|
{
|
|
$OSVersionString = (Get-CIMInstance Win32_OperatingSystem).version
|
|
}
|
|
|
|
|
|
Write-Output "Running on: $ProductName, ($EditionId)"
|
|
Write-Output "Windows Version: $OSVersionString"
|
|
|
|
$RunningOnNano = $False
|
|
If ($EditionId -ilike '*Nano*')
|
|
{$RunningOnNano = $True}
|
|
|
|
If (Test-Path variable:shimgen)
|
|
{$RunningUnderChocolatey = $True}
|
|
Else
|
|
{ Write-Output "Running Without Chocolatey"}
|
|
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
|
$OSBits = ([System.IntPtr]::Size * 8) #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
|
|
}
|
|
|
|
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"
|
|
}
|
|
$filename = "$toolsdir\OpenSSH-Win$($OSBits).zip"
|
|
#$TargetFolder = "$PF\OpenSSH"
|
|
#$TargetFolderOld = "$PF\OpenSSH-Win$($OSBits)"
|
|
$TargetFolder = "$PF\OpenSSH-Win$($OSBits)"
|
|
$ExtractFolder = "$env:temp\OpenSSHTemp"
|
|
|
|
$sshdpath = Join-Path $TargetFolder "sshd.exe"
|
|
$sshagentpath = Join-Path $TargetFolder "ssh-agent.exe"
|
|
$sshdatadir = Join-Path $env:ProgramData "\ssh"
|
|
$logsdir = Join-Path $SSHDataDir "logs"
|
|
|
|
$packageArgs = @{
|
|
packageName = 'openssh'
|
|
unziplocation = "$ExtractFolder"
|
|
fileType = 'EXE_MSI_OR_MSU' #only one of these: exe, msi, msu
|
|
|
|
checksum = 'EC6337750977F07A2F37F81CEDC7FF7450E0D892'
|
|
checksumType = 'SHA1'
|
|
checksum64 = '9CA09FDDFA89FCAF147E97207640F566BAA48852'
|
|
checksumType64= 'SHA1'
|
|
}
|
|
|
|
If ($RunningUnderChocolatey)
|
|
{
|
|
# Default the values before reading params
|
|
$SSHServerFeature = $false
|
|
$KeyBasedAuthenticationFeature = $false
|
|
$SSHServerPort = '22'
|
|
|
|
$arguments = @{};
|
|
$packageParameters = $env:chocolateyPackageParameters
|
|
}
|
|
|
|
$OpeningMessage = @"
|
|
|
|
************************************************************************************
|
|
************************************************************************************
|
|
This package is a Universal Installer and can ALSO install Win32-OpenSSH on
|
|
Nano, Server Core, Docker Containers and more WITHOUT using Chocolatey.
|
|
|
|
See the following for more details:
|
|
https://github.com/DarwinJS/ChocoPackages/blob/master/openssh/readme.md
|
|
************************************************************************************
|
|
************************************************************************************
|
|
|
|
"@
|
|
|
|
Write-Output $OpeningMessage
|
|
|
|
function Get-PackageParametersCustom {
|
|
[CmdletBinding()]
|
|
param(
|
|
[string] $Parameters = $Env:ChocolateyPackageParameters,
|
|
# Allows splatting with arguments that do not apply and future expansion. Do not use directly.
|
|
[parameter(ValueFromRemainingArguments = $true)]
|
|
[Object[]] $IgnoredArguments
|
|
)
|
|
|
|
$res = @{}
|
|
|
|
$re = "\/([a-zA-Z0-9]+)(:[`"'].+?[`"']|[^ ]+)?"
|
|
$results = $Parameters | Select-String $re -AllMatches | select -Expand Matches
|
|
foreach ($m in $results) {
|
|
if (!$m) { continue } # must because of posh 2.0 bug: https://github.com/chocolatey/chocolatey-coreteampackages/issues/465
|
|
|
|
$a = $m.Value -split ':'
|
|
$opt = $a[0].Substring(1); $val = $a[1..100] -join ':'
|
|
if ($val -match '^(".+")|(''.+'')$') {$val = $val -replace '^.|.$'}
|
|
$res[ $opt ] = if ($val) { $val } else { $true }
|
|
}
|
|
$res
|
|
}
|
|
|
|
|
|
# Now parse the packageParameters using good old regular expression
|
|
if ($packageparameters) {
|
|
|
|
$pp = Get-PackageParametersCustom
|
|
|
|
if ($pp.SSHAgentFeature) {
|
|
Write-Host "/SSHAgentFeature was used, including SSH Agent Service."
|
|
$SSHAgentFeature = $true
|
|
}
|
|
|
|
if ($pp.SSHServerFeature) {
|
|
Write-Host "/SSHServerFeature was used, including SSH Server Feature."
|
|
$SSHServerFeature = $true
|
|
}
|
|
|
|
if ($pp.OverWriteSSHDConf) {
|
|
Write-Host "/OverWriteSSHDConf was used, will overwrite any existing sshd_conf with one from install media."
|
|
$OverWriteSSHDConf = $true
|
|
}
|
|
|
|
if ($pp.SSHServerPort) {
|
|
$SSHServerPort = $pp.Get_Item("SSHServerPort")
|
|
Write-Host "/SSHServerPort was used, attempting to use SSHD listening port $SSHServerPort."
|
|
If (!$SSHServerFeature)
|
|
{
|
|
Write-Host "You forgot to specify /SSHServerFeature with /SSHServerPort, autofixing for you, enabling /SSHServerFeature"
|
|
$SSHServerFeature = $true
|
|
}
|
|
}
|
|
|
|
if ($pp.SSHLogLevel) {
|
|
|
|
$ValidLogSettings = @('QUIET', 'FATAL', 'ERROR', 'INFO', 'VERBOSE', 'DEBUG', 'DEBUG1', 'DEBUG2','DEBUG3')
|
|
$SSHLogLevel = $pp.Get_Item("SSHLogLevel").toupper()
|
|
If ($ValidLogSettings -inotcontains $SSHLogLevel)
|
|
{Throw "$SSHLogLevel is not one of the valid values: $(($ValidLogSettings -join ' ') | out-string)"}
|
|
Write-Host "/SSHLogLevel was used, setting LogLevel in sshd_conf to $SSHLogLevel"
|
|
}
|
|
Else
|
|
{
|
|
$SSHLogLevel = $null
|
|
}
|
|
|
|
if ($pp.AlsoLogToFile) {
|
|
$AlsoLogToFile = $True
|
|
Write-Host '/AlsoLogToFile was used, setting AlsoLogToFile to $True'
|
|
}
|
|
|
|
if ($pp.TERM) {
|
|
$TERM = $pp.Get_Item("TERM")
|
|
Write-Host "/TERM was used, setting system TERM environment variable to $TERM"
|
|
$TERMSwitchUsed = $True
|
|
}
|
|
|
|
if ($pp.KeyBasedAuthenticationFeature) {
|
|
Write-Host "Including Key based authentication."
|
|
$KeyBasedAuthenticationFeature = $true
|
|
If (!$SSHServerFeature)
|
|
{
|
|
Write-Warning "KeyBasedAuthenticationFeature was specified, but is only value when SSHServerFeature is specified, ignoring..."
|
|
}
|
|
}
|
|
|
|
if ($pp.PathSpecsToProbeForShellEXEString) {
|
|
$PathSpecsToProbeForShellEXEString = $pp.Get_Item("PathSpecsToProbeForShellEXEString")
|
|
|
|
Write-Host "PathSpecsToProbeForShellEXEString was used, probing for suitable shell using search specs: $PathSpecsToProbeForShellEXEString"
|
|
}
|
|
|
|
if ($pp.AllowInsecureShellEXE) {
|
|
$AllowInsecureShellEXE = $True
|
|
}
|
|
|
|
if ($pp.SSHDefaultShellCommandOption) {
|
|
$SSHDefaultShellCommandOption = $pp.Get_Item("SSHDefaultShellCommandOption")
|
|
}
|
|
|
|
} else {
|
|
Write-Debug "No Package Parameters Passed in";
|
|
}
|
|
|
|
Function CheckServicePath ($ServiceEXE,$FolderToCheck)
|
|
{
|
|
if ($RunningOnNano) {
|
|
#The NANO TP5 Compatible Way:
|
|
Return ([bool](@(wmic service | ?{$_ -ilike "*$ServiceEXE*"}) -ilike "*$FolderToCheck*"))
|
|
}
|
|
Else
|
|
{
|
|
#The modern way:
|
|
Return ([bool]((Get-WmiObject win32_service | ?{$_.PathName -ilike "*$ServiceEXE*"} | select -expand PathName) -ilike "*$FolderToCheck*"))
|
|
}
|
|
}
|
|
|
|
#Extract Files Early
|
|
If ($RunningUnderChocolatey)
|
|
{
|
|
If (Test-Path $ExtractFolder)
|
|
{
|
|
Remove-Item $ExtractFolder -Recurse -Force
|
|
}
|
|
Get-ChocolateyUnzip "$filename" $ExtractFolder
|
|
}
|
|
Else
|
|
{
|
|
If (Test-Path "$toolsdir\7z.exe")
|
|
{
|
|
#covers nano
|
|
cd $toolsdir
|
|
start-process .\7z.exe -argumentlist "x `"$filename`" -o`"$ExtractFolder`" -aoa" -nonewwindow -wait
|
|
}
|
|
Else
|
|
{
|
|
Throw "You need a copy of 7z.exe next to this script for this operating system. You can get a copy at 7-zip.org"
|
|
}
|
|
}
|
|
|
|
If ($SSHServerFeature -OR $SSHAgentFeature)
|
|
{
|
|
. "$toolsdir\SetSpecialPrivileges.ps1"
|
|
}
|
|
|
|
If ($SSHServerFeature)
|
|
{ #Check if anything is already listening on port $SSHServerPort, which is not a previous version of this software.
|
|
$AtLeastOneSSHDPortListenerIsNotUs = $False
|
|
Write-Output "Probing for possible conflicts with SSHD server to be configured on port $SSHServerPort ..."
|
|
. "$toolsdir\Get-NetStat.ps1"
|
|
$procslisteningonRequestedSSHDPort = @(Get-Netstat -GetProcessDetails -FilterOnPort $SSHServerPort)
|
|
If ((checkservicepath 'svchost.exe -k SshBrokerGroup' 'Part of Microsoft SSH Server for Windows') -AND (checkservicepath 'svchost.exe -k SshProxyGroup' 'Part of Microsoft SSH Server for Windows'))
|
|
{
|
|
Write-Warning " > Detected that Developer Mode SSH is present (Probably due to enabling Windows 10 Developer Mode)"
|
|
$DeveloperModeSSHIsPresent = $True
|
|
}
|
|
|
|
If ($procslisteningonRequestedSSHDPort.count -ge 1)
|
|
{
|
|
ForEach ($proconRequestedSSHDPort in $procslisteningonRequestedSSHDPort)
|
|
{
|
|
Write-output " > Checking $($proconRequestedSSHDPort.Localaddressprocesspath) against path $TargetFolder"
|
|
If ("$($proconRequestedSSHDPort.Localaddressprocesspath)" -ilike "*$TargetFolder*")
|
|
{
|
|
Write-Output " > Found a previous version of Win32-OpenSSH installed by this package on Port $SSHServerPort."
|
|
}
|
|
Else
|
|
{
|
|
$AtLeastOneSSHDPortListenerIsNotUs = $True
|
|
Write-Warning " > Found something listening on Port $SSHServerPort that was not installed by this package."
|
|
Write-Warning " $($proconRequestedSSHDPort.LocalAddressProcessPath) is listening on Port $SSHServerPort"
|
|
$ProcessOccupyingPort = "$($proconRequestedSSHDPort.LocalAddressProcessPath)"
|
|
}
|
|
}
|
|
}
|
|
|
|
If ($AtLeastOneSSHDPortListenerIsNotUs)
|
|
{
|
|
$errorMessagePort = @"
|
|
"$ProcessOccupyingPort" is listening on port $SSHServerPort and you have not specified a different listening port (list above) using the /SSHServerPort parameter.
|
|
Please either deconfigure or deinstall whatever is running on Port $SSHServerPort and try again OR specify a different port for this SSHD Server using the /SSHServerPort package parameter.
|
|
If you see the message 'Detected that Developer Mode SSH is present' above, you may be able to simply disable the services 'SSHBroker' and 'SSHProxy'
|
|
"@
|
|
Throw $errorMessagePort
|
|
}
|
|
}
|
|
|
|
$SSHServiceInstanceExistsAndIsOurs = CheckServicePath 'sshd.exe' "$TargetFolder"
|
|
$SSHAGENTServiceInstanceExistsAndIsOurs = CheckServicePath 'ssh-agent.exe' "$TargetFolder"
|
|
|
|
If ($SSHServerFeature -AND (!$SSHServiceInstanceExistsAndIsOurs) -AND ([bool](Get-Service sshd -ErrorAction SilentlyContinue)))
|
|
{
|
|
$ExistingSSHDInstancePath = get-itemproperty hklm:\system\currentcontrolset\services\* | where {($_.ImagePath -ilike '*sshd.exe*')} | Select -expand ImagePath
|
|
Throw "You have requested that the SSHD service be installed, but this system appears to have an instance of an SSHD service configured for another folder ($ExistingSSHDInstancePath). You can remove the package switch /SSHServerFeature to install just the client tools, or you will need to remove that instance of SSHD to use the one that comes with this package."
|
|
}
|
|
|
|
If ((!$SSHServerFeature) -AND $SSHServiceInstanceExistsAndIsOurs)
|
|
{
|
|
Throw "There is a configured instance of the SSHD service, please specify the /SSHServerFeature to confirm it is OK to shutdown and upgrade the SSHD service at this time."
|
|
}
|
|
|
|
If ([bool](get-process ssh -erroraction silentlycontinue | where {$_.Path -ilike "*$TargetFolder*"}))
|
|
{
|
|
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 ((Test-Path $TargetFolder) -AND (@(dir "$TargetFolder\*.exe").count -gt 0))
|
|
{
|
|
Write-Output "`r`nCURRENT VERSIONS OF SSH EXES:"
|
|
Write-Output "$(dir "$TargetFolder\*.exe"| select -expand fullname | get-command | select -expand fileversioninfo | ft filename, fileversion -auto | out-string)"
|
|
}
|
|
|
|
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 ($SSHServiceInstanceExistsAndIsOurs)
|
|
{
|
|
Write-output "Stopping SSHD Service for upgrade..."
|
|
Stop-Service sshd
|
|
sc.exe delete sshd | out-null
|
|
}
|
|
If ($SSHAGENTServiceInstanceExistsAndIsOurs)
|
|
{
|
|
Stop-Service SSH-Agent -Force
|
|
Start-Sleep -seconds 3
|
|
If (([bool](Get-Service ssh-agent | where {$_.Status -ieq 'Running'})))
|
|
{
|
|
Throw "Could not stop the ssh-agent service, please stop manually and retry this package."
|
|
}
|
|
sc.exe delete ssh-agent | out-null
|
|
}
|
|
|
|
If ($OSBits -eq 64)
|
|
{
|
|
$SourceZipChecksum = $packageargs.checksum64
|
|
$SourceZipChecksumType = $packageargs.checksumType64
|
|
}
|
|
Else
|
|
{
|
|
$SourceZipChecksum = $packageargs.checksum
|
|
$SourceZipChecksumType = $packageargs.checksumType
|
|
}
|
|
|
|
If ([bool](get-command get-filehash -ea silentlycontinue))
|
|
{
|
|
If ((Get-FileHash $filename -Algorithm $SourceZipChecksumType).Hash -eq $SourceZipChecksum)
|
|
{
|
|
Write-Output "Hashes for internal source match"
|
|
}
|
|
Else
|
|
{
|
|
throw "Checksums for internal source do not match - something is wrong."
|
|
}
|
|
}
|
|
Else
|
|
{
|
|
Write-Output "Source files are internal to the package, checksums are not required nor checked."
|
|
}
|
|
|
|
Copy-Item "$ExtractFolder\*" "$PF" -Force -Recurse -Passthru -ErrorAction Stop
|
|
Copy-Item "$toolsdir\Set-SSHDefaultShell.ps1" "$TargetFolder" -Force -PassThru -ErrorAction Stop
|
|
|
|
Remove-Item "$ExtractFolder" -Force -Recurse
|
|
|
|
If ($RunningUnderChocolatey)
|
|
{
|
|
Install-ChocolateyPath "$TargetFolder" 'Machine'
|
|
}
|
|
Else
|
|
{
|
|
$PathToAdd = $TargetFolder
|
|
$ExistingPathArray = @(((Get-ItemProperty 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' | select -expand path).split(';')))
|
|
if (($ExistingPathArray -inotcontains $PathToAdd) -AND ($ExistingPathArray -inotcontains "$PathToAdd\"))
|
|
{
|
|
$Newpath = $ExistingPathArray + @("$PathToAdd")
|
|
$AssembledNewPath = ($newpath -join(';')).trimend(';')
|
|
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'PATH' -Value "$AssembledNewPath"
|
|
}
|
|
}
|
|
If ($env:Path -inotlike "*$TargetFolder*")
|
|
{
|
|
$env:path += ";$TargetFolder"
|
|
}
|
|
|
|
$ExistingTermValue = $null
|
|
$ExistingTermValue = (get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -EA SilentlyContinue | Select -Expand TERM -EA SilentlyContinue)
|
|
|
|
If ((!$ExistingTermValue) -OR ($ExistingTermValue -ine $TERM))
|
|
{
|
|
Write-Host "Updating machine environment variable TERM from `"$ExistingTermValue`" to `"$TERM`""
|
|
Set-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' -Name 'TERM' -Value "$TERM"
|
|
}
|
|
|
|
If ($SSHAgentFeature)
|
|
{
|
|
New-Service -Name ssh-agent -BinaryPathName "$TargetFolder\ssh-agent.exe" -Description "SSH Agent" -StartupType Automatic | Out-Null
|
|
cmd.exe /c 'sc.exe sdset ssh-agent D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RP;;;AU)'
|
|
|
|
Start-Service ssh-agent
|
|
|
|
Start-Sleep -seconds 3
|
|
}
|
|
|
|
If ($SSHServerFeature)
|
|
{
|
|
Write-Warning "You have specified SSHServerFeature - this machine is being configured as an SSH Server including opening port $SSHServerPort."
|
|
|
|
|
|
#create the ssh config folder and set its permissions
|
|
if(-not (test-path $sshdatadir -PathType Container))
|
|
{
|
|
$null = New-Item $sshdatadir -ItemType Directory -Force -ErrorAction Stop
|
|
}
|
|
$acl = Get-Acl -Path $sshdatadir
|
|
# following SDDL implies
|
|
# - owner - built in Administrators
|
|
# - disabled inheritance
|
|
# - Full access to System
|
|
# - Full access to built in Administrators
|
|
$acl.SetSecurityDescriptorSddlForm("O:BAD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)(A;OICI;0x1200a9;;;AU)")
|
|
Set-Acl -Path $sshdatadir -AclObject $acl
|
|
|
|
# create logs folder and set its permissions
|
|
if(-not (test-path $logsdir -PathType Container))
|
|
{
|
|
$null = New-Item $logsdir -ItemType Directory -Force -ErrorAction Stop
|
|
}
|
|
$acl = Get-Acl -Path $logsdir
|
|
# following SDDL implies
|
|
# - owner - built in Administrators
|
|
# - disabled inheritance
|
|
# - Full access to System
|
|
# - Full access to built in Administrators
|
|
$acl.SetSecurityDescriptorSddlForm("O:BAD:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;BA)")
|
|
Set-Acl -Path $logsdir -AclObject $acl
|
|
|
|
If((Test-Path "$TargetFolder\sshd_config"))
|
|
{
|
|
Write-Host "Migrating existing sshd_config to new location `"$sshdatadir`""
|
|
Move-Item "$TargetFolder\sshd_config" $sshdatadir -force
|
|
}
|
|
|
|
#for clean config copy sshd_config_default to $sshdatadir\sshd_config
|
|
$sshdconfigpath = Join-Path $sshdatadir "sshd_config"
|
|
$sshddefaultconfigpath = Join-Path $TargetFolder "sshd_config_default"
|
|
if(-not (test-path $sshdconfigpath -PathType Leaf))
|
|
{
|
|
$null = Copy-Item $sshddefaultconfigpath -Destination $sshdconfigpath -ErrorAction Stop
|
|
}
|
|
|
|
If((Test-Path "$TargetFolder\ssh_host_*"))
|
|
{
|
|
Write-Host "Migrating existing ssh host keys to new location `"$sshdatadir`""
|
|
Move-Item "$TargetFolder\ssh_host_*" $sshdatadir -force
|
|
}
|
|
|
|
If ($RunningOnNano)
|
|
{
|
|
Write-Warning "Forcing on"
|
|
$AlsoLogToFile = $True
|
|
}
|
|
|
|
If((Test-Path "$sshdconfigpath"))
|
|
{
|
|
$CurrentLogLevelConfig = ((gc "$sshdconfigpath") -imatch "^#*LogLevel\s\w*\b.*$")
|
|
Write-Output 'Setting up SSH Logging'
|
|
If ($SSHLogLevel)
|
|
{ #command line specified a log level - override whatever is there
|
|
If ([bool]($CurrentLogLevelConfig -inotmatch "^LogLevel\s$SSHLogLevel\s*$"))
|
|
{
|
|
Write-Output "Current LogLevel setting in `"$sshdconfigpath`" is `"$CurrentLogLevelConfig`", setting it to `"LogLevel $SSHLogLevel`""
|
|
(Get-Content "$sshdconfigpath") -replace "^#*LogLevel\s\w*\b.*$", "LogLevel $SSHLogLevel" | Set-Content "$sshdconfigpath"
|
|
}
|
|
}
|
|
|
|
$CurrentPortConfig = ((gc "$sshdconfigpath") -match "^#*Port\s\d*\s*$")
|
|
If ([bool]($CurrentPortConfig -notmatch "^Port $SSHServerPort"))
|
|
{
|
|
Write-Output "Current port setting in `"$sshdconfigpath`" is `"$CurrentPortConfig`", setting it to `"Port $SSHServerPort`""
|
|
(Get-Content "$sshdconfigpath") -replace "^#*Port\s\d*\s*$", "Port $SSHServerPort" | Set-Content "$sshdconfigpath"
|
|
}
|
|
Else
|
|
{
|
|
Write-Output "Current port setting in `"$sshdconfigpath`" already matches `"Port $SSHServerPort`", no action necessary."
|
|
}
|
|
|
|
If ($AlsoLogToFile)
|
|
{
|
|
If ((Get-Content "$sshdconfigpath") -notmatch "^Subsystem\ssftp\ssftp-server\.exe.*LOCAL0.*$")
|
|
{
|
|
(Get-Content "$sshdconfigpath") -replace "^Subsystem\ssftp\ssftp-server\.exe.*$", "SyslogFacility LOCAL0" | Set-Content "$sshdconfigpath"
|
|
}
|
|
}
|
|
}
|
|
|
|
If ($PathSpecsToProbeForShellEXEString)
|
|
{
|
|
$ParamsSSHDefaultShell = @{}
|
|
$ParamsSSHDefaultShell.add('PathSpecsToProbeForShellEXEString',"$PathSpecsToProbeForShellEXEString")
|
|
If ($AllowInsecureShellEXE) {$ParamsSSHDefaultShell += @{'AllowInsecureShellEXE'=$AllowInsecureShellEXE}
|
|
If ($SSHDefaultShellCommandOption) {$ParamsSSHDefaultShell += @{'SSHDefaultShellCommandOption'="$SSHDefaultShellCommandOption"}
|
|
|
|
Write-Host "$ParamsSSHDefaultShell"
|
|
|
|
. $TargetFolder\Set-SSHDefaultShell.ps1 @ParamsSSHDefaultShell
|
|
}
|
|
|
|
netsh advfirewall firewall add rule name='SSHD Port OpenSSH (chocolatey package: openssh)' dir=in action=allow protocol=TCP localport=$SSHServerPort
|
|
|
|
If (!$RunningOnNano)
|
|
{
|
|
$etwman = Join-Path $TargetFolder "openssh-events.man"
|
|
|
|
# unregister etw provider
|
|
wevtutil um `"$etwman`"
|
|
|
|
# adjust provider resource path in instrumentation manifest
|
|
[XML]$xml = Get-Content $etwman
|
|
$xml.instrumentationManifest.instrumentation.events.provider.resourceFileName = $sshagentpath.ToString()
|
|
$xml.instrumentationManifest.instrumentation.events.provider.messageFileName = $sshagentpath.ToString()
|
|
$xml.Save($etwman)
|
|
|
|
#register etw provider
|
|
wevtutil im `"$etwman`"
|
|
}
|
|
|
|
New-Service -Name sshd -BinaryPathName "$TargetFolder\sshd.exe" -Description "SSH Daemon" -StartupType Automatic | Out-Null
|
|
|
|
Write-Host "Ensuring all ssh key and configuration files have correct permissions for all users"
|
|
. "$TargetFolder\FixHostFilePermissions.ps1" -Confirm:$false
|
|
}
|
|
|
|
If (CheckServicePath 'sshd.exe' "$TargetFolder")
|
|
{
|
|
write-output "Starting SSHD..."
|
|
Start-Service SSHD
|
|
}
|
|
If (CheckServicePath 'ssh-agent.exe' "$TargetFolder")
|
|
{
|
|
write-output "Starting SSH-Agent..."
|
|
Start-Service SSH-Agent
|
|
}
|
|
|
|
$fullpathkeylist = "'$sshdatadir\ssh_host_dsa_key'", "'$sshdatadir\ssh_host_rsa_key'", "'$sshdatadir\ssh_host_ecdsa_key'", "'$sshdatadir\ssh_host_ed25519_key'"
|
|
|
|
If (Test-Path "$TargetFolder\ssh.exe")
|
|
{
|
|
Write-Output "`r`nNEW VERSIONS OF SSH EXES:"
|
|
Write-Output "$(dir "$TargetFolder\*.exe" | select -expand fullname | get-command | select -expand fileversioninfo | ft filename, fileversion -auto | out-string)"
|
|
}
|
|
|
|
write-output ""
|
|
Write-Warning "You must start a new prompt, or use the command 'refreshenv' (provided by your chocolatey install) to re-read the environment for the tools to be available in this shell session."
|
|
|
|
2023-12-30 15:42:30,180 1936 [DEBUG] - Calling built-in PowerShell host with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null']
|
|
2023-12-30 15:42:30,198 1936 [DEBUG] - Redirecting System.Management.Automation.resources, Version=3.0.0.0, Culture=en-US, PublicKeyToken=31bf3856ad364e35, requested by ''
|
|
2023-12-30 15:42:31,730 1936 [DEBUG] - Host version is 5.1.17763.1, PowerShell Version is '5.1.17763.3770' and CLR Version is '4.0.30319.42000'.
|
|
2023-12-30 15:42:32,884 1936 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
|
|
2023-12-30 15:42:32,900 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
|
|
2023-12-30 15:42:32,916 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
|
|
2023-12-30 15:42:32,916 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
|
|
2023-12-30 15:42:32,933 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
|
|
2023-12-30 15:42:32,947 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
|
|
2023-12-30 15:42:32,961 1936 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
|
|
2023-12-30 15:42:32,977 1936 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
|
|
2023-12-30 15:42:32,993 1936 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
|
|
2023-12-30 15:42:33,009 1936 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
|
|
2023-12-30 15:42:33,024 1936 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
|
|
2023-12-30 15:42:33,041 1936 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
|
|
2023-12-30 15:42:33,041 1936 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
|
|
2023-12-30 15:42:33,060 1936 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
|
|
2023-12-30 15:42:33,077 1936 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
|
|
2023-12-30 15:42:33,077 1936 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
|
|
2023-12-30 15:42:33,089 1936 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
|
|
2023-12-30 15:42:33,089 1936 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
|
|
2023-12-30 15:42:33,103 1936 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
|
|
2023-12-30 15:42:33,117 1936 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
|
|
2023-12-30 15:42:33,117 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
|
|
2023-12-30 15:42:33,134 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
|
|
2023-12-30 15:42:33,151 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
|
|
2023-12-30 15:42:33,165 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
|
|
2023-12-30 15:42:33,165 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
|
|
2023-12-30 15:42:33,217 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
|
|
2023-12-30 15:42:33,245 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2023-12-30 15:42:33,245 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
|
|
2023-12-30 15:42:33,262 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
|
|
2023-12-30 15:42:33,276 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
|
|
2023-12-30 15:42:33,276 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
|
|
2023-12-30 15:42:33,289 1936 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
|
|
2023-12-30 15:42:33,289 1936 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
|
|
2023-12-30 15:42:33,306 1936 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
|
|
2023-12-30 15:42:33,321 1936 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
|
|
2023-12-30 15:42:33,339 1936 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
|
|
2023-12-30 15:42:33,339 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
|
|
2023-12-30 15:42:33,354 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2023-12-30 15:42:33,370 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
|
|
2023-12-30 15:42:33,370 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
|
|
2023-12-30 15:42:33,388 1936 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
|
|
2023-12-30 15:42:33,408 1936 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
|
|
2023-12-30 15:42:33,430 1936 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
|
|
2023-12-30 15:42:33,447 1936 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
|
|
2023-12-30 15:42:33,447 1936 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
|
|
2023-12-30 15:42:33,471 1936 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
|
|
2023-12-30 15:42:33,482 1936 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
|
|
2023-12-30 15:42:33,495 1936 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
|
|
2023-12-30 15:42:33,495 1936 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
|
|
2023-12-30 15:42:33,526 1936 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
|
|
2023-12-30 15:42:33,526 1936 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
|
|
2023-12-30 15:42:33,571 1936 [DEBUG] - Loading community extensions
|
|
2023-12-30 15:42:33,650 1936 [DEBUG] - Importing 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'
|
|
2023-12-30 15:42:33,713 1936 [INFO ] - VERBOSE: Loading module from path 'C:\ProgramData\chocolatey\extensions\chocolatey-windowsupdate\chocolatey-windowsupdate.psm1'.
|
|
2023-12-30 15:42:33,903 1936 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
|
|
2023-12-30 15:42:33,936 1936 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
|
|
2023-12-30 15:42:33,954 1936 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
|
|
2023-12-30 15:42:33,962 1936 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
|
|
2023-12-30 15:42:33,962 1936 [INFO ] - VERBOSE: Exporting function 'Format-FileSize'.
|
|
2023-12-30 15:42:33,982 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChecksumValid'.
|
|
2023-12-30 15:42:33,982 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyConfigValue'.
|
|
2023-12-30 15:42:33,999 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyPath'.
|
|
2023-12-30 15:42:34,011 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyUnzip'.
|
|
2023-12-30 15:42:34,034 1936 [INFO ] - VERBOSE: Exporting function 'Get-ChocolateyWebFile'.
|
|
2023-12-30 15:42:34,041 1936 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariable'.
|
|
2023-12-30 15:42:34,041 1936 [INFO ] - VERBOSE: Exporting function 'Get-EnvironmentVariableNames'.
|
|
2023-12-30 15:42:34,056 1936 [INFO ] - VERBOSE: Exporting function 'Get-FtpFile'.
|
|
2023-12-30 15:42:34,056 1936 [INFO ] - VERBOSE: Exporting function 'Get-OSArchitectureWidth'.
|
|
2023-12-30 15:42:34,087 1936 [INFO ] - VERBOSE: Exporting function 'Get-PackageParameters'.
|
|
2023-12-30 15:42:34,103 1936 [INFO ] - VERBOSE: Exporting function 'Get-PackageParametersBuiltIn'.
|
|
2023-12-30 15:42:34,121 1936 [INFO ] - VERBOSE: Exporting function 'Get-ToolsLocation'.
|
|
2023-12-30 15:42:34,121 1936 [INFO ] - VERBOSE: Exporting function 'Get-UACEnabled'.
|
|
2023-12-30 15:42:34,135 1936 [INFO ] - VERBOSE: Exporting function 'Get-UninstallRegistryKey'.
|
|
2023-12-30 15:42:34,153 1936 [INFO ] - VERBOSE: Exporting function 'Get-VirusCheckValid'.
|
|
2023-12-30 15:42:34,165 1936 [INFO ] - VERBOSE: Exporting function 'Get-WebFile'.
|
|
2023-12-30 15:42:34,186 1936 [INFO ] - VERBOSE: Exporting function 'Get-WebFileName'.
|
|
2023-12-30 15:42:34,186 1936 [INFO ] - VERBOSE: Exporting function 'Get-WebHeaders'.
|
|
2023-12-30 15:42:34,215 1936 [INFO ] - VERBOSE: Exporting function 'Install-BinFile'.
|
|
2023-12-30 15:42:34,232 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyEnvironmentVariable'.
|
|
2023-12-30 15:42:34,243 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyExplorerMenuItem'.
|
|
2023-12-30 15:42:34,291 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyFileAssociation'.
|
|
2023-12-30 15:42:34,322 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyInstallPackage'.
|
|
2023-12-30 15:42:34,343 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPackage'.
|
|
2023-12-30 15:42:34,361 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPath'.
|
|
2023-12-30 15:42:34,370 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2023-12-30 15:42:34,383 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyPowershellCommand'.
|
|
2023-12-30 15:42:34,383 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyShortcut'.
|
|
2023-12-30 15:42:34,383 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyVsixPackage'.
|
|
2023-12-30 15:42:34,406 1936 [INFO ] - VERBOSE: Exporting function 'Install-ChocolateyZipPackage'.
|
|
2023-12-30 15:42:34,434 1936 [INFO ] - VERBOSE: Exporting function 'Install-Vsix'.
|
|
2023-12-30 15:42:34,446 1936 [INFO ] - VERBOSE: Exporting function 'Set-EnvironmentVariable'.
|
|
2023-12-30 15:42:34,446 1936 [INFO ] - VERBOSE: Exporting function 'Set-PowerShellExitCode'.
|
|
2023-12-30 15:42:34,462 1936 [INFO ] - VERBOSE: Exporting function 'Start-ChocolateyProcessAsAdmin'.
|
|
2023-12-30 15:42:34,477 1936 [INFO ] - VERBOSE: Exporting function 'Test-ProcessAdminRights'.
|
|
2023-12-30 15:42:34,493 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-BinFile'.
|
|
2023-12-30 15:42:34,561 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2023-12-30 15:42:34,581 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyPackage'.
|
|
2023-12-30 15:42:34,594 1936 [INFO ] - VERBOSE: Exporting function 'Uninstall-ChocolateyZipPackage'.
|
|
2023-12-30 15:42:34,608 1936 [INFO ] - VERBOSE: Exporting function 'Update-SessionEnvironment'.
|
|
2023-12-30 15:42:34,625 1936 [INFO ] - VERBOSE: Exporting function 'Write-FunctionCallLogMessage'.
|
|
2023-12-30 15:42:34,636 1936 [INFO ] - VERBOSE: Exporting function 'Install-WindowsUpdate'.
|
|
2023-12-30 15:42:34,650 1936 [INFO ] - VERBOSE: Exporting function 'Test-WindowsUpdate'.
|
|
2023-12-30 15:42:34,650 1936 [INFO ] - VERBOSE: Exporting alias 'Get-ProcessorBits'.
|
|
2023-12-30 15:42:34,665 1936 [INFO ] - VERBOSE: Exporting alias 'Get-OSBitness'.
|
|
2023-12-30 15:42:34,680 1936 [INFO ] - VERBOSE: Exporting alias 'Get-InstallRegistryKey'.
|
|
2023-12-30 15:42:34,680 1936 [INFO ] - VERBOSE: Exporting alias 'Generate-BinFile'.
|
|
2023-12-30 15:42:34,698 1936 [INFO ] - VERBOSE: Exporting alias 'Add-BinFile'.
|
|
2023-12-30 15:42:34,717 1936 [INFO ] - VERBOSE: Exporting alias 'Start-ChocolateyProcess'.
|
|
2023-12-30 15:42:34,731 1936 [INFO ] - VERBOSE: Exporting alias 'Invoke-ChocolateyProcess'.
|
|
2023-12-30 15:42:34,745 1936 [INFO ] - VERBOSE: Exporting alias 'Remove-BinFile'.
|
|
2023-12-30 15:42:34,760 1936 [INFO ] - VERBOSE: Exporting alias 'refreshenv'.
|
|
2023-12-30 15:42:34,778 1936 [INFO ] - VERBOSE: Importing function 'Format-FileSize'.
|
|
2023-12-30 15:42:34,793 1936 [INFO ] - VERBOSE: Importing function 'Get-ChecksumValid'.
|
|
2023-12-30 15:42:34,793 1936 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyConfigValue'.
|
|
2023-12-30 15:42:34,811 1936 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyPath'.
|
|
2023-12-30 15:42:34,820 1936 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyUnzip'.
|
|
2023-12-30 15:42:34,820 1936 [INFO ] - VERBOSE: Importing function 'Get-ChocolateyWebFile'.
|
|
2023-12-30 15:42:34,836 1936 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariable'.
|
|
2023-12-30 15:42:34,836 1936 [INFO ] - VERBOSE: Importing function 'Get-EnvironmentVariableNames'.
|
|
2023-12-30 15:42:34,866 1936 [INFO ] - VERBOSE: Importing function 'Get-FtpFile'.
|
|
2023-12-30 15:42:34,870 1936 [INFO ] - VERBOSE: Importing function 'Get-OSArchitectureWidth'.
|
|
2023-12-30 15:42:34,887 1936 [INFO ] - VERBOSE: Importing function 'Get-PackageParameters'.
|
|
2023-12-30 15:42:34,915 1936 [INFO ] - VERBOSE: Importing function 'Get-PackageParametersBuiltIn'.
|
|
2023-12-30 15:42:34,915 1936 [INFO ] - VERBOSE: Importing function 'Get-ToolsLocation'.
|
|
2023-12-30 15:42:34,946 1936 [INFO ] - VERBOSE: Importing function 'Get-UACEnabled'.
|
|
2023-12-30 15:42:34,977 1936 [INFO ] - VERBOSE: Importing function 'Get-UninstallRegistryKey'.
|
|
2023-12-30 15:42:34,992 1936 [INFO ] - VERBOSE: Importing function 'Get-VirusCheckValid'.
|
|
2023-12-30 15:42:34,992 1936 [INFO ] - VERBOSE: Importing function 'Get-WebFile'.
|
|
2023-12-30 15:42:35,008 1936 [INFO ] - VERBOSE: Importing function 'Get-WebFileName'.
|
|
2023-12-30 15:42:35,023 1936 [INFO ] - VERBOSE: Importing function 'Get-WebHeaders'.
|
|
2023-12-30 15:42:35,043 1936 [INFO ] - VERBOSE: Importing function 'Install-BinFile'.
|
|
2023-12-30 15:42:35,057 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyEnvironmentVariable'.
|
|
2023-12-30 15:42:35,070 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyExplorerMenuItem'.
|
|
2023-12-30 15:42:35,070 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyFileAssociation'.
|
|
2023-12-30 15:42:35,087 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyInstallPackage'.
|
|
2023-12-30 15:42:35,087 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPackage'.
|
|
2023-12-30 15:42:35,106 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPath'.
|
|
2023-12-30 15:42:35,118 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPinnedTaskBarItem'.
|
|
2023-12-30 15:42:35,118 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyPowershellCommand'.
|
|
2023-12-30 15:42:35,140 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyShortcut'.
|
|
2023-12-30 15:42:35,150 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyVsixPackage'.
|
|
2023-12-30 15:42:35,150 1936 [INFO ] - VERBOSE: Importing function 'Install-ChocolateyZipPackage'.
|
|
2023-12-30 15:42:35,166 1936 [INFO ] - VERBOSE: Importing function 'Install-Vsix'.
|
|
2023-12-30 15:42:35,181 1936 [INFO ] - VERBOSE: Importing function 'Install-WindowsUpdate'.
|
|
2023-12-30 15:42:35,181 1936 [INFO ] - VERBOSE: Importing function 'Set-EnvironmentVariable'.
|
|
2023-12-30 15:42:35,198 1936 [INFO ] - VERBOSE: Importing function 'Set-PowerShellExitCode'.
|
|
2023-12-30 15:42:35,215 1936 [INFO ] - VERBOSE: Importing function 'Start-ChocolateyProcessAsAdmin'.
|
|
2023-12-30 15:42:35,215 1936 [INFO ] - VERBOSE: Importing function 'Test-ProcessAdminRights'.
|
|
2023-12-30 15:42:35,245 1936 [INFO ] - VERBOSE: Importing function 'Test-WindowsUpdate'.
|
|
2023-12-30 15:42:35,245 1936 [INFO ] - VERBOSE: Importing function 'Uninstall-BinFile'.
|
|
2023-12-30 15:42:35,258 1936 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyEnvironmentVariable'.
|
|
2023-12-30 15:42:35,275 1936 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyPackage'.
|
|
2023-12-30 15:42:35,291 1936 [INFO ] - VERBOSE: Importing function 'Uninstall-ChocolateyZipPackage'.
|
|
2023-12-30 15:42:35,291 1936 [INFO ] - VERBOSE: Importing function 'Update-SessionEnvironment'.
|
|
2023-12-30 15:42:35,321 1936 [INFO ] - VERBOSE: Importing function 'Write-FunctionCallLogMessage'.
|
|
2023-12-30 15:42:35,321 1936 [INFO ] - VERBOSE: Importing alias 'Add-BinFile'.
|
|
2023-12-30 15:42:35,338 1936 [INFO ] - VERBOSE: Importing alias 'Generate-BinFile'.
|
|
2023-12-30 15:42:35,359 1936 [INFO ] - VERBOSE: Importing alias 'Get-InstallRegistryKey'.
|
|
2023-12-30 15:42:35,369 1936 [INFO ] - VERBOSE: Importing alias 'Get-OSBitness'.
|
|
2023-12-30 15:42:35,369 1936 [INFO ] - VERBOSE: Importing alias 'Get-ProcessorBits'.
|
|
2023-12-30 15:42:35,384 1936 [INFO ] - VERBOSE: Importing alias 'Invoke-ChocolateyProcess'.
|
|
2023-12-30 15:42:35,384 1936 [INFO ] - VERBOSE: Importing alias 'refreshenv'.
|
|
2023-12-30 15:42:35,399 1936 [INFO ] - VERBOSE: Importing alias 'Remove-BinFile'.
|
|
2023-12-30 15:42:35,399 1936 [INFO ] - VERBOSE: Importing alias 'Start-ChocolateyProcess'.
|
|
2023-12-30 15:42:35,637 1936 [DEBUG] - ---------------------------Script Execution---------------------------
|
|
2023-12-30 15:42:35,714 1936 [DEBUG] - Running 'ChocolateyScriptRunner' for openssh v9.1.0-beta1 with packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\openssh', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
|
|
2023-12-30 15:42:35,854 1936 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
|
|
2023-12-30 15:42:37,214 1936 [INFO ] - VERBOSE: Perform operation 'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_OperatingSystem'.
|
|
2023-12-30 15:42:38,337 1936 [INFO ] - VERBOSE: Operation 'Enumerate CimInstances' complete.
|
|
2023-12-30 15:42:38,462 1936 [INFO ] - Running on: Windows Server 2019 Datacenter, (ServerDatacenter)
|
|
2023-12-30 15:42:38,495 1936 [INFO ] - Windows Version: 10.0.17763
|
|
2023-12-30 15:42:38,586 1936 [INFO ] -
|
|
************************************************************************************
|
|
************************************************************************************
|
|
This package is a Universal Installer and can ALSO install Win32-OpenSSH on
|
|
Nano, Server Core, Docker Containers and more WITHOUT using Chocolatey.
|
|
|
|
See the following for more details:
|
|
https://github.com/DarwinJS/ChocoPackages/blob/master/openssh/readme.md
|
|
************************************************************************************
|
|
************************************************************************************
|
|
|
|
2023-12-30 15:42:38,635 1936 [DEBUG] - No Package Parameters Passed in
|
|
2023-12-30 15:42:39,041 1936 [DEBUG] - Running Get-ChocolateyUnzip -fileFullPath 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip' -destination 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp'
|
|
2023-12-30 15:42:39,181 1936 [DEBUG] - Running Get-OSArchitectureWidth -compare '32'
|
|
2023-12-30 15:42:39,291 1936 [INFO ] - Extracting C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip to C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp...
|
|
2023-12-30 15:42:39,465 1936 [DEBUG] - 7zip found at 'C:\ProgramData\chocolatey\tools\7z.exe'
|
|
2023-12-30 15:42:39,650 1936 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp" -y "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip"]
|
|
2023-12-30 15:42:40,680 1936 [INFO ] - VERBOSE: 1 file, 4397401 bytes (4295 KiB)
|
|
2023-12-30 15:42:40,761 1936 [INFO ] - VERBOSE:
|
|
2023-12-30 15:42:40,792 1936 [INFO ] - VERBOSE:
|
|
2023-12-30 15:42:40,824 1936 [INFO ] - VERBOSE: Scanning the drive for archives:
|
|
2023-12-30 15:42:40,857 1936 [INFO ] - VERBOSE: Extracting archive: C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
|
|
2023-12-30 15:42:40,877 1936 [INFO ] - VERBOSE:
|
|
2023-12-30 15:42:40,887 1936 [INFO ] - VERBOSE: 7-Zip 23.01 (x86) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
|
|
2023-12-30 15:42:40,916 1936 [INFO ] - VERBOSE: --
|
|
2023-12-30 15:42:40,931 1936 [INFO ] - VERBOSE: Type = zip
|
|
2023-12-30 15:42:40,946 1936 [INFO ] - VERBOSE: Path = C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip
|
|
2023-12-30 15:42:40,963 1936 [INFO ] - VERBOSE: Physical Size = 4397401
|
|
2023-12-30 15:42:40,980 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\_manifest\
|
|
2023-12-30 15:42:41,146 1936 [INFO ] - VERBOSE:
|
|
2023-12-30 15:42:41,171 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\FixHostFilePermissions.ps1
|
|
2023-12-30 15:42:41,200 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\FixUserFilePermissions.ps1
|
|
2023-12-30 15:42:41,228 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\install-sshd.ps1
|
|
2023-12-30 15:42:41,242 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\libcrypto.dll
|
|
2023-12-30 15:42:41,277 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\LICENSE.txt
|
|
2023-12-30 15:42:41,292 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\NOTICE.txt
|
|
2023-12-30 15:42:41,308 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\openssh-events.man
|
|
2023-12-30 15:42:41,308 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psd1
|
|
2023-12-30 15:42:41,340 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\OpenSSHUtils.psm1
|
|
2023-12-30 15:42:41,371 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\scp.exe
|
|
2023-12-30 15:42:41,398 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp.exe
|
|
2023-12-30 15:42:41,398 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\sftp-server.exe
|
|
2023-12-30 15:42:41,432 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh.exe
|
|
2023-12-30 15:42:41,457 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-add.exe
|
|
2023-12-30 15:42:41,486 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-agent.exe
|
|
2023-12-30 15:42:41,507 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd.exe
|
|
2023-12-30 15:42:41,529 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\sshd_config_default
|
|
2023-12-30 15:42:41,558 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keygen.exe
|
|
2023-12-30 15:42:41,593 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-keyscan.exe
|
|
2023-12-30 15:42:41,635 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-pkcs11-helper.exe
|
|
2023-12-30 15:42:41,650 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-shellhost.exe
|
|
2023-12-30 15:42:41,650 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\moduli
|
|
2023-12-30 15:42:41,781 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\ssh-sk-helper.exe
|
|
2023-12-30 15:42:41,816 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json
|
|
2023-12-30 15:42:41,822 1936 [INFO ] - VERBOSE:
|
|
2023-12-30 15:42:41,852 1936 [INFO ] - VERBOSE: Everything is Ok
|
|
2023-12-30 15:42:41,867 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json.sha256
|
|
2023-12-30 15:42:41,867 1936 [INFO ] - VERBOSE: Folders: 1
|
|
2023-12-30 15:42:41,883 1936 [INFO ] - VERBOSE: Files: 26
|
|
2023-12-30 15:42:41,883 1936 [INFO ] - VERBOSE: Compressed: 4397401
|
|
2023-12-30 15:42:41,900 1936 [INFO ] - VERBOSE: Size: 9685802
|
|
2023-12-30 15:42:41,930 1936 [INFO ] - VERBOSE: - OpenSSH-Win64\uninstall-sshd.ps1
|
|
2023-12-30 15:42:42,214 1936 [DEBUG] - $exitCode was passed null
|
|
2023-12-30 15:42:42,248 1936 [DEBUG] - Command ['C:\ProgramData\chocolatey\tools\7z.exe' x -aoa -bd -bb1 -o"C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp" -y "C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip"] exited with '0'.
|
|
2023-12-30 15:42:42,291 1936 [DEBUG] - 7z exit code: 0
|
|
2023-12-30 15:42:42,352 1936 [INFO ] - C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp
|
|
2023-12-30 15:42:54,093 1936 [INFO ] - Hashes for internal source match
|
|
2023-12-30 15:42:54,132 1936 [INFO ] - C:\Program Files\OpenSSH-Win64
|
|
2023-12-30 15:42:54,149 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\FixHostFilePermissions.ps1
|
|
2023-12-30 15:42:54,164 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\FixUserFilePermissions.ps1
|
|
2023-12-30 15:42:54,194 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\install-sshd.ps1
|
|
2023-12-30 15:42:54,230 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\libcrypto.dll
|
|
2023-12-30 15:42:54,240 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\LICENSE.txt
|
|
2023-12-30 15:42:54,257 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\moduli
|
|
2023-12-30 15:42:54,257 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\NOTICE.txt
|
|
2023-12-30 15:42:54,288 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\openssh-events.man
|
|
2023-12-30 15:42:54,303 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psd1
|
|
2023-12-30 15:42:54,322 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\OpenSSHUtils.psm1
|
|
2023-12-30 15:42:54,335 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\scp.exe
|
|
2023-12-30 15:42:54,335 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp-server.exe
|
|
2023-12-30 15:42:54,351 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\sftp.exe
|
|
2023-12-30 15:42:54,366 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-add.exe
|
|
2023-12-30 15:42:54,382 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-agent.exe
|
|
2023-12-30 15:42:54,397 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keygen.exe
|
|
2023-12-30 15:42:54,397 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-keyscan.exe
|
|
2023-12-30 15:42:54,431 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-pkcs11-helper.exe
|
|
2023-12-30 15:42:54,448 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-shellhost.exe
|
|
2023-12-30 15:42:54,478 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh-sk-helper.exe
|
|
2023-12-30 15:42:54,491 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\ssh.exe
|
|
2023-12-30 15:42:54,507 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd.exe
|
|
2023-12-30 15:42:54,522 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\sshd_config_default
|
|
2023-12-30 15:42:54,539 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\uninstall-sshd.ps1
|
|
2023-12-30 15:42:54,554 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest
|
|
2023-12-30 15:42:54,571 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest\spdx_2.2
|
|
2023-12-30 15:42:54,585 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json
|
|
2023-12-30 15:42:54,600 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\_manifest\spdx_2.2\manifest.spdx.json.sha256
|
|
2023-12-30 15:42:54,600 1936 [INFO ] - C:\Program Files\OpenSSH-Win64\Set-SSHDefaultShell.ps1
|
|
2023-12-30 15:42:54,756 1936 [DEBUG] - Running Install-ChocolateyPath -pathToInstall 'C:\Program Files\OpenSSH-Win64' -pathType 'Machine'
|
|
2023-12-30 15:42:54,960 1936 [DEBUG] - Running Update-SessionEnvironment
|
|
2023-12-30 15:42:54,978 1936 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
|
|
2023-12-30 15:42:56,118 1936 [INFO ] - PATH environment variable does not have C:\Program Files\OpenSSH-Win64 in it. Adding...
|
|
2023-12-30 15:42:56,147 1936 [INFO ] - VERBOSE: Choosing not to expand environment names
|
|
2023-12-30 15:42:56,382 1936 [DEBUG] - Test-ProcessAdminRights: returning True
|
|
2023-12-30 15:42:56,525 1936 [DEBUG] - Running Set-EnvironmentVariable -Name 'Path' -Value '%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;' -Scope 'Machine'
|
|
2023-12-30 15:42:56,616 1936 [DEBUG] - Registry type for Path is/will be ExpandString
|
|
2023-12-30 15:42:56,742 1936 [DEBUG] - |
|
using System; |
|
using System.Runtime.InteropServices; |
|
|
|
namespace Win32 |
|
{ |
|
public class NativeMethods |
|
{ |
|
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
|
|
public static extern IntPtr SendMessageTimeout(
|
|
IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam,
|
|
uint fuFlags, uint uTimeout, out UIntPtr lpdwResult); |
|
|
|
} |
|
|
|
} |
|
|
|
2023-12-30 15:42:57,586 1936 [DEBUG] - Running Update-SessionEnvironment
|
|
2023-12-30 15:42:57,586 1936 [INFO ] - VERBOSE: Refreshing environment variables from the registry.
|
|
2023-12-30 15:42:58,139 1936 [INFO ] - Updating machine environment variable TERM from "" to ""
|
|
2023-12-30 15:43:06,212 1936 [INFO ] -
|
|
NEW VERSIONS OF SSH EXES:
|
|
2023-12-30 15:43:06,710 1936 [INFO ] -
|
|
2023-12-30 15:43:06,757 1936 [INFO ] -
|
|
2023-12-30 15:43:06,789 1936 [WARN ] - WARNING: You must start a new prompt, or use the command 'refreshenv' (provided by your chocolatey install) to re-read the environment for the tools to be available in this shell session.
|
|
2023-12-30 15:43:06,865 1936 [DEBUG] - ----------------------------------------------------------------------
|
|
2023-12-30 15:43:06,911 1936 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '0'.
|
|
2023-12-30 15:43:06,958 1936 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
|
|
2023-12-30 15:43:07,303 1936 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
|
|
2023-12-30 15:43:07,396 1936 [WARN ] - Environment Vars (like PATH) have changed. Close/reopen your shell to
|
|
see the changes (or in powershell/cmd.exe just type `refreshenv`).
|
|
2023-12-30 15:43:07,412 1936 [DEBUG] - The following values have been added/changed (may contain sensitive data):
|
|
2023-12-30 15:43:07,427 1936 [DEBUG] - * ChocolateyLastPathUpdate='133484245773446103' (User)
|
|
2023-12-30 15:43:07,427 1936 [DEBUG] - * Path='C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSH-Win64;' (Machine)
|
|
2023-12-30 15:43:07,460 1936 [DEBUG] - * TERM='' (Machine)
|
|
2023-12-30 15:43:08,137 1936 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\openssh'
|
|
2023-12-30 15:43:08,193 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nupkg'
|
|
with checksum 'C37C32529772C53B0EFFE538A2871BB1'
|
|
2023-12-30 15:43:08,193 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\openssh.nuspec'
|
|
with checksum '454A14D15581A96CA00159EF0814B2B9'
|
|
2023-12-30 15:43:08,245 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\7z.exe.ignore'
|
|
with checksum 'D41D8CD98F00B204E9800998ECF8427E'
|
|
2023-12-30 15:43:08,257 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\barebonesinstaller.ps1'
|
|
with checksum '4EF4A2A2F7DF1E58FEFC7B2796C3D30B'
|
|
2023-12-30 15:43:08,289 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyinstall.ps1'
|
|
with checksum 'BA6E194048F31A33803C1D4DD1542D40'
|
|
2023-12-30 15:43:08,312 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\chocolateyuninstall.ps1'
|
|
with checksum '52ED6CE8FD63609AF9144F51A2B4841B'
|
|
2023-12-30 15:43:08,334 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Get-NetStat.ps1'
|
|
with checksum '5639E1A979924BAB1F81DEDC52C89003'
|
|
2023-12-30 15:43:08,351 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\LICENSE.txt'
|
|
with checksum '1FA7983BE13136F10B6E346AC0F8ACE3'
|
|
2023-12-30 15:43:08,430 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win32.zip'
|
|
with checksum '4EBAB9D617FB58D327A19CDB4EEF290E'
|
|
2023-12-30 15:43:08,491 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\OpenSSH-Win64.zip'
|
|
with checksum '37D2E69B84CC79EEE6F61DB62D1F4441'
|
|
2023-12-30 15:43:08,505 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\Set-SSHDefaultShell.ps1'
|
|
with checksum '1A26224C48488038D136D9F06A7B9E73'
|
|
2023-12-30 15:43:08,544 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\SetSpecialPrivileges.ps1'
|
|
with checksum '543B78A2B38141A98F2AF8BD3F10893B'
|
|
2023-12-30 15:43:08,590 1936 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\openssh\tools\VERIFICATION.txt'
|
|
with checksum 'A3C11FB5F52B25E893CFB4FA8539F2E4'
|
|
2023-12-30 15:43:08,756 1936 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\openssh.9.1.0-beta1".
|
|
2023-12-30 15:43:08,917 1936 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\openssh.9.1.0-beta1\.files'
|
|
2023-12-30 15:43:08,943 1936 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.9.1.0-beta1\.extra".
|
|
2023-12-30 15:43:08,960 1936 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.9.1.0-beta1\.version".
|
|
2023-12-30 15:43:08,991 1936 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.9.1.0-beta1\.sxs".
|
|
2023-12-30 15:43:09,022 1936 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\openssh.9.1.0-beta1\.pin".
|
|
2023-12-30 15:43:09,084 1936 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
|
|
2023-12-30 15:43:09,118 1936 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\lib\openssh\.chocolateyPending".
|
|
2023-12-30 15:43:09,131 1936 [INFO ] - The install of openssh was successful.
|
|
2023-12-30 15:43:09,151 1936 [INFO ] - Software installed to 'C:\Users\vagrant\AppData\Local\Temp\chocolatey\OpenSSHTemp'
|
|
2023-12-30 15:43:09,317 1936 [WARN ] -
|
|
Chocolatey installed 1/1 packages.
|
|
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
|
|
2023-12-30 15:43:09,385 1936 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
|
|
2023-12-30 15:43:09,427 1936 [DEBUG] - Exiting with 0
|