Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

test: sshd config validation test on 20.04 #5054

Merged
merged 1 commit into from Jan 26, 2023

Conversation

christinalau0
Copy link
Contributor

Reason for Change:

The sshd config validation test was failing on 20.04 environments. Output:

Unable to load host key: /etc/ssh/ssh_host_rsa_key 
Unable to load host key: /etc/ssh/ssh_host_dsa_key 
Unable to load host key: /etc/ssh/ssh_host_ecdsa_key 
Unable to load host key: /etc/ssh/ssh_host_ed25519_key 
sshd: no hostkeys available -- exiting.
exit 1

The fix greps the sshd config file itself, and works on both 20.04 and 18.04

Issue Fixed:

Credit Where Due:

Does this change contain code from or inspired by another project?

  • No
  • Yes

If "Yes," did you notify that project's maintainers and provide attribution?

  • No
  • Yes

Requirements:

Notes:

The sshd config validation test was failing on 20.04 environments, output:
Unable to load host key: /etc/ssh/ssh_host_rsa_key
Unable to load host key: /etc/ssh/ssh_host_dsa_key
Unable to load host key: /etc/ssh/ssh_host_ecdsa_key
Unable to load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.
+ exit 1

The fix greps the sshd config file itself, and works on both 20.04 and 18.04
@christinalau0
Copy link
Contributor Author

/azp run pr-e2e

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 5054 in repo Azure/aks-engine

@jadarsie
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jadarsie jadarsie merged commit b787675 into Azure:master Jan 26, 2023
jadarsie pushed a commit that referenced this pull request Jan 26, 2023
The sshd config validation test was failing on 20.04 environments, output:
Unable to load host key: /etc/ssh/ssh_host_rsa_key
Unable to load host key: /etc/ssh/ssh_host_dsa_key
Unable to load host key: /etc/ssh/ssh_host_ecdsa_key
Unable to load host key: /etc/ssh/ssh_host_ed25519_key
sshd: no hostkeys available -- exiting.
+ exit 1

The fix greps the sshd config file itself, and works on both 20.04 and 18.04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants