Skip to content

Remove SSH host keys after installing the custom version of sshd (#10633)#11140

Merged
saiarcot895 merged 1 commit intosonic-net:202012from
saiarcot895:remove-ssh-host-keys-202012
Jun 16, 2022
Merged

Remove SSH host keys after installing the custom version of sshd (#10633)#11140
saiarcot895 merged 1 commit intosonic-net:202012from
saiarcot895:remove-ssh-host-keys-202012

Conversation

@saiarcot895
Copy link
Contributor

  • Remove SSH host keys after installing the custom version of sshd

Signed-off-by: Saikrishna Arcot sarcot@microsoft.com

  • Use an override for for sshd instead of overwriting the service file

Don't overwrite upstream's .service file, and instead use an override
file for making sure the host key(s) are generated.

Signed-off-by: Saikrishna Arcot sarcot@microsoft.com

Why I did it

Cherry-pick of #10633 from master branch to 202012 branch.

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…ic-net#10633)

* Remove SSH host keys after installing the custom version of sshd

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>

* Use an override for for sshd instead of overwriting the service file

Don't overwrite upstream's .service file, and instead use an override
file for making sure the host key(s) are generated.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
@saiarcot895 saiarcot895 requested review from Blueve and yxieca June 14, 2022 18:41
@saiarcot895 saiarcot895 marked this pull request as ready for review June 14, 2022 18:41
@saiarcot895 saiarcot895 merged commit 044570c into sonic-net:202012 Jun 16, 2022
@saiarcot895 saiarcot895 deleted the remove-ssh-host-keys-202012 branch June 16, 2022 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants