From 2aadf01e6f53b194267dac65b7251e3edacfda7a Mon Sep 17 00:00:00 2001 From: Leo Sin Date: Wed, 12 Jun 2024 16:51:07 -0400 Subject: [PATCH] chore: set AddressFamily to any in sshd_config --- .github/actions/setup-sshd/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/setup-sshd/action.yml b/.github/actions/setup-sshd/action.yml index aed686e..fd80e69 100644 --- a/.github/actions/setup-sshd/action.yml +++ b/.github/actions/setup-sshd/action.yml @@ -44,6 +44,8 @@ runs: sudo sed -i.bak "s/#\?\(PermitRootLogin\).*/\1 yes/g" "$SSHD_CONFIG" fi + sudo sed -i.bak "s/#\?\(AddressFamily\).*/\1 any/g" "$SSHD_CONFIG" + sudo sed -i.bak "s/#\?\(ListenAddress\).*/\1 ${{ inputs.host }}:${{ inputs.port }}/g" "$SSHD_CONFIG" - name: Generate key pairs