diff --git a/.github/workflows/run-tests-with-ssh.yml b/.github/workflows/run-tests-with-ssh.yml index e1adf268..7623b042 100644 --- a/.github/workflows/run-tests-with-ssh.yml +++ b/.github/workflows/run-tests-with-ssh.yml @@ -24,14 +24,14 @@ jobs: - name: Start Docker container run: | - docker run -d --name test_container -e AUTHORIZED_KEYS="$(cat /tmp/ssh_key.pub)" --platform linux/arm64 diniscruz/python_with_ssh + docker run -d -p 22222:22 --name test_container -e AUTHORIZED_KEYS="$(cat /tmp/ssh_key.pub)" --platform linux/arm64 diniscruz/python_with_ssh - name: Wait for Docker container to be ready run: sleep 10 - name: Run a simple SSH command run: | - ssh -o StrictHostKeyChecking=no -i /tmp/ssh_key root@localhost -p 2222 echo "SSH connection successful" + ssh -o StrictHostKeyChecking=no -i /tmp/ssh_key root@localhost -p 22222 echo "SSH connection successful" # - name: Run tests # run: |