Skip to content

Commit 5761200

Browse files
liuh-80StormLiangMS
authored andcommitted
Revert SSHD config change. (sonic-net#12729)
Revert SSHD config change. #### Why I did it Some test case and code may impact by SSHD config change. #### How I did it Revert following change in build_debian.sh script: ClientAliveInterval change back to 900. MaxAuthTries change back to default value. Banner change to disabled. #### How to verify it Pass all E2E test case. #### Which release branch to backport (provide reason below if selected) <!-- - Note we only backport fixes to a release branch, *not* features! - Please also provide a reason for the backporting below. - e.g. - [x] 202006 --> - [ ] 201811 - [ ] 201911 - [ ] 202006 - [ ] 202012 - [ ] 202106 - [ ] 202111 - [ ] 202205 #### Description for the changelog Revert SSHD config change. #### Link to config_db schema for YANG module changes <!-- Provide a link to config_db schema for the table for which YANG model is defined Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md --> #### A picture of a cute animal (not mandatory but encouraged)
1 parent 3120299 commit 5761200

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

build_debian.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,12 @@ rm /files/etc/ssh/sshd_config/ClientAliveInterval
468468
rm /files/etc/ssh/sshd_config/ClientAliveCountMax
469469
touch /files/etc/ssh/sshd_config/EmptyLineHack
470470
rename /files/etc/ssh/sshd_config/EmptyLineHack ""
471-
set /files/etc/ssh/sshd_config/ClientAliveInterval 300
471+
set /files/etc/ssh/sshd_config/ClientAliveInterval 900
472472
set /files/etc/ssh/sshd_config/ClientAliveCountMax 0
473473
ins #comment before /files/etc/ssh/sshd_config/ClientAliveInterval
474-
set /files/etc/ssh/sshd_config/#comment[following-sibling::*[1][self::ClientAliveInterval]] "Close inactive client sessions after 5 minutes"
475-
rm /files/etc/ssh/sshd_config/MaxAuthTries
476-
set /files/etc/ssh/sshd_config/MaxAuthTries 3
474+
set /files/etc/ssh/sshd_config/#comment[following-sibling::*[1][self::ClientAliveInterval]] "Close inactive client sessions after 15 minutes"
477475
rm /files/etc/ssh/sshd_config/LogLevel
478476
set /files/etc/ssh/sshd_config/LogLevel VERBOSE
479-
rm /files/etc/ssh/sshd_config/Banner
480-
set /files/etc/ssh/sshd_config/Banner /etc/issue
481477
save
482478
quit
483479
EOF

0 commit comments

Comments
 (0)