Access Ubuntu Server Shell Using GitHub Actions
How to Access Ubuntu Server Shell with GitHub Actions

Infosec Poet and CAP-certified DevOps/SecOps Engineer, passionate about security, creativity, and continuous learning.
Tasks
Use GitHub Actions to Access the Ubuntu Server Shell.
Ensure the shell can be accessed on tty and any browser, allowing easy access from anywhere.
Steps
First of all we should have
githubaccount. If you don’t have creategithub account.
https://github.com/Create a new repository from your github account.
Repo name - Random
Make sure to set it to public; choosing private will incur a charge.Now we have our own repo. Assuming you also have your own repo.

Let’s dive to
sshx- A secure web-based, collaborative terminal.Find github : https://github.com/ekzhang/sshx
We are going to use the CI/CD features from here. So get the yaml from here.
name: CI on: push jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 # ... other steps ... - run: curl -sSf https://sshx.io/get | sh -s run # ^ # └ This will open a remote terminal session and print the URL. It # should take under a second.Copy and create a github actions workflow
https://github.com/abisecops/shellx/actions/new

/.github/workflows →
anything.yaml; For me I’m usingshellx.yaml. Then paste the above yaml here.
Commit changes

Check workflow from actions now

Click on build

We got `
sshx shell linkhere.
Now we can access tty shell from the link

Try root shell now use given command. Lol simple but use it.
cd sudo su cd whoami
I’m the
rootkiddo :pInstall
neofetchnow.apt install neofetch
Now we can use see server info. I just love this, nothing more.
neofetch

This server will run for 6 hours after the build. After that, you need to rebuild it. You can also set up a cron job here if needed.
Be careful adding this to a public GitHub repository, as any user can view the logs of a CI job while it is running.
#linux #githubactions #sshx #happylearning





