Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SSHD config to use more secure settings #17798

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

liuh-80
Copy link
Contributor

@liuh-80 liuh-80 commented Jan 17, 2024

Improve SSHD config to use more secure settings

Why I did it

According to Sonic OS review result, SSHD config file /etc/ssh/sshd_config using insecure settings.

Work item tracking
  • Microsoft ADO: 15022083

How I did it

Change build_debian.sh script to set following settings to /etc/ssh/sshd_config:
ClientAliveInterval is set to 300
MaxAuthTries is set to default of 3
Banner set to /etc/issue

How to verify it

Pass all E2E test case.

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

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

Description for the changelog

Improve SSHD config to use more secure settings

Link to config_db schema for YANG module changes

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

@liuh-80 liuh-80 marked this pull request as ready for review January 19, 2024 09:15
@liuh-80 liuh-80 requested a review from lguohan as a code owner January 19, 2024 09:15
@liuh-80 liuh-80 requested a review from qiluo-msft January 19, 2024 09:16
@xumia xumia merged commit b1750b7 into sonic-net:master Jan 23, 2024
19 checks passed
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.

3 participants