[build_debian.sh] Configure sshd to listen for IPv6 connections (#7719)
#### Why I did it To allow SSH connections from IPv6 addresses Resolves https://github.com/Azure/sonic-buildimage/issues/7668 #### How I did it In build_debian.sh, modify sshd_config file so as to enable listening for IPv6 connections
This commit is contained in:
parent
8ed14524e8
commit
0f99f97d2f
@ -391,9 +391,9 @@ set /files/etc/ssh/sshd_config/#comment[following-sibling::*[1][self::ClientAliv
|
|||||||
save
|
save
|
||||||
quit
|
quit
|
||||||
EOF
|
EOF
|
||||||
# Configure sshd to listen for v4 connections; disable listening for v6 connections
|
# Configure sshd to listen for v4 and v6 connections
|
||||||
sudo sed -i 's/^ListenAddress ::/#ListenAddress ::/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
|
|
||||||
sudo sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
|
sudo sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
|
||||||
|
sudo sed -i 's/^#ListenAddress ::/ListenAddress ::/' $FILESYSTEM_ROOT/etc/ssh/sshd_config
|
||||||
|
|
||||||
## Config rsyslog
|
## Config rsyslog
|
||||||
sudo augtool -r $FILESYSTEM_ROOT --autosave "
|
sudo augtool -r $FILESYSTEM_ROOT --autosave "
|
||||||
|
Reference in New Issue
Block a user