fix the sshd_config and test related changes (#265)
fix the sshd_config and test related changes
This commit is contained in:
parent
973a7afc62
commit
b92b7c9480
|
@ -523,6 +523,13 @@ function Start-OpenSSHBuild
|
||||||
$xml.Project.PropertyGroup.WindowsSDKVersion = $win10SDKVer.ToString()
|
$xml.Project.PropertyGroup.WindowsSDKVersion = $win10SDKVer.ToString()
|
||||||
$xml.Project.PropertyGroup.AdditionalDependentLibs = 'onecore.lib'
|
$xml.Project.PropertyGroup.AdditionalDependentLibs = 'onecore.lib'
|
||||||
$xml.Project.PropertyGroup.MinimalCoreWin = 'true'
|
$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)
|
$xml.Save($PathTargets)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -244,6 +244,7 @@ WARNING: Following changes will be made to OpenSSH configuration
|
||||||
$authorizedKeyPath = Join-Path $ssouserProfile .ssh\authorized_keys
|
$authorizedKeyPath = Join-Path $ssouserProfile .ssh\authorized_keys
|
||||||
$testPubKeyPath = Join-Path $Script:E2ETestDirectory sshtest_userssokey_ed25519.pub
|
$testPubKeyPath = Join-Path $Script:E2ETestDirectory sshtest_userssokey_ed25519.pub
|
||||||
Copy-Item $testPubKeyPath $authorizedKeyPath -Force -ErrorAction SilentlyContinue
|
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"]
|
copy-item (Join-Path $Script:E2ETestDirectory sshtest_userssokey_ed25519) $Global:OpenSSHTestInfo["TestDataPath"]
|
||||||
$testPriKeypath = Join-Path $Global:OpenSSHTestInfo["TestDataPath"] sshtest_userssokey_ed25519
|
$testPriKeypath = Join-Path $Global:OpenSSHTestInfo["TestDataPath"] sshtest_userssokey_ed25519
|
||||||
|
|
|
@ -11,10 +11,10 @@
|
||||||
#ListenAddress 0.0.0.0
|
#ListenAddress 0.0.0.0
|
||||||
#ListenAddress ::
|
#ListenAddress ::
|
||||||
|
|
||||||
#HostKey /etc/ssh/ssh_host_rsa_key
|
#HostKey __PROGRAMDATA__/ssh/ssh_host_rsa_key
|
||||||
#HostKey /etc/ssh/ssh_host_dsa_key
|
#HostKey __PROGRAMDATA__/ssh/ssh_host_dsa_key
|
||||||
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
#HostKey __PROGRAMDATA__/ssh/ssh_host_ecdsa_key
|
||||||
#HostKey /etc/ssh/ssh_host_ed25519_key
|
#HostKey __PROGRAMDATA__/ssh/ssh_host_ed25519_key
|
||||||
|
|
||||||
# Ciphers and keying
|
# Ciphers and keying
|
||||||
#RekeyLimit default none
|
#RekeyLimit default none
|
||||||
|
@ -39,7 +39,7 @@ AuthorizedKeysFile .ssh/authorized_keys
|
||||||
|
|
||||||
#AuthorizedPrincipalsFile none
|
#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
|
#HostbasedAuthentication no
|
||||||
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
||||||
# HostbasedAuthentication
|
# HostbasedAuthentication
|
||||||
|
|
Loading…
Reference in New Issue