Here a way to run SSH shell inside github which last up to 6 hours.
To use it, fork and go to action to run desired system.
In 5-10 minutes it should be up an running, and share how to connect.
Details: https://kirill.korins.ky/articles/using-github-actions-as-a-temporary-shell/