diff --git a/contrib/win32/openssh/OpenSSHBuildHelper.psm1 b/contrib/win32/openssh/OpenSSHBuildHelper.psm1 index d6714a076..2e98a8daf 100644 --- a/contrib/win32/openssh/OpenSSHBuildHelper.psm1 +++ b/contrib/win32/openssh/OpenSSHBuildHelper.psm1 @@ -523,6 +523,13 @@ function Start-OpenSSHBuild $xml.Project.PropertyGroup.WindowsSDKVersion = $win10SDKVer.ToString() $xml.Project.PropertyGroup.AdditionalDependentLibs = 'onecore.lib' $xml.Project.PropertyGroup.MinimalCoreWin = 'true' + + #Use onecore libcrypto binaries + $xml.Project.PropertyGroup."LibreSSL-x86-Path" = '$(SolutionDir)\LibreSSLSDK\onecore\x86\' + $xml.Project.PropertyGroup."LibreSSL-x64-Path" = '$(SolutionDir)\LibreSSLSDK\onecore\x64\' + $xml.Project.PropertyGroup."LibreSSL-arm-Path" = '$(SolutionDir)\LibreSSLSDK\onecore\arm\' + $xml.Project.PropertyGroup."LibreSSL-arm64-Path" = '$(SolutionDir)\LibreSSLSDK\onecore\arm64\' + $xml.Save($PathTargets) } diff --git a/contrib/win32/openssh/OpenSSHTestHelper.psm1 b/contrib/win32/openssh/OpenSSHTestHelper.psm1 index d5d4ec6ae..e90879989 100644 --- a/contrib/win32/openssh/OpenSSHTestHelper.psm1 +++ b/contrib/win32/openssh/OpenSSHTestHelper.psm1 @@ -244,6 +244,7 @@ WARNING: Following changes will be made to OpenSSH configuration $authorizedKeyPath = Join-Path $ssouserProfile .ssh\authorized_keys $testPubKeyPath = Join-Path $Script:E2ETestDirectory sshtest_userssokey_ed25519.pub Copy-Item $testPubKeyPath $authorizedKeyPath -Force -ErrorAction SilentlyContinue + Repair-AuthorizedKeyPermission -FilePath $authorizedKeyPath -confirm:$false copy-item (Join-Path $Script:E2ETestDirectory sshtest_userssokey_ed25519) $Global:OpenSSHTestInfo["TestDataPath"] $testPriKeypath = Join-Path $Global:OpenSSHTestInfo["TestDataPath"] sshtest_userssokey_ed25519 diff --git a/contrib/win32/openssh/sshd_config b/contrib/win32/openssh/sshd_config index ccf511311..dfd050b09 100644 --- a/contrib/win32/openssh/sshd_config +++ b/contrib/win32/openssh/sshd_config @@ -11,10 +11,10 @@ #ListenAddress 0.0.0.0 #ListenAddress :: -#HostKey /etc/ssh/ssh_host_rsa_key -#HostKey /etc/ssh/ssh_host_dsa_key -#HostKey /etc/ssh/ssh_host_ecdsa_key -#HostKey /etc/ssh/ssh_host_ed25519_key +#HostKey __PROGRAMDATA__/ssh/ssh_host_rsa_key +#HostKey __PROGRAMDATA__/ssh/ssh_host_dsa_key +#HostKey __PROGRAMDATA__/ssh/ssh_host_ecdsa_key +#HostKey __PROGRAMDATA__/ssh/ssh_host_ed25519_key # Ciphers and keying #RekeyLimit default none @@ -39,7 +39,7 @@ AuthorizedKeysFile .ssh/authorized_keys #AuthorizedPrincipalsFile none -# For this to work you will also need host keys in %windir%/programdata/openssh/config/ssh_known_hosts +# For this to work you will also need host keys in %programData%/ssh/ssh_known_hosts #HostbasedAuthentication no # Change to yes if you don't trust ~/.ssh/known_hosts for # HostbasedAuthentication diff --git a/regress/pesterTests/ssh-add-hostkey-tmp.txt b/regress/pesterTests/ssh-add-hostkey-tmp.txt deleted file mode 100644 index e69de29bb..000000000