From d14fda1047858292bfb72ef9c4572990a2c3d47f Mon Sep 17 00:00:00 2001 From: Darrel Pol Date: Tue, 10 Sep 2024 23:41:35 -0500 Subject: [PATCH] adding ssh interval and alive count --- .github/workflows/on_merge_to_master.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/on_merge_to_master.yaml b/.github/workflows/on_merge_to_master.yaml index 3f26ed08a..72df2a30f 100644 --- a/.github/workflows/on_merge_to_master.yaml +++ b/.github/workflows/on_merge_to_master.yaml @@ -21,7 +21,7 @@ jobs: - name: SSH into EC2 and deploy the app run: | - ssh -o StrictHostKeyChecking=no ${{ secrets.MOONLITE_AWS_EC2_SSH_USER }}@${{ secrets.MOONLITE_AWS_EC2_SSH_HOST }} << 'EOF' + ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=60 -o StrictHostKeyChecking=no ${{ secrets.MOONLITE_AWS_EC2_SSH_USER }}@${{ secrets.MOONLITE_AWS_EC2_SSH_HOST }} << 'EOF' cd /home/ec2-user/apps/stable-diffusion-webui git pull origin master