Bypass IP restriction SSH

302 views Asked by At

I have a Laravel app with CI/CD setup at BuddyWorks which lets you create deployment pipelines.

I want to use SSH action to run some config scripts (artisan...) after uploading the source code.

Unfortunately, it turned out that SSH connectivity to the hosting server is restricted to my home country, ergo can’t use BuddyWorks to do the job for me. The hosting company refused my request to whitelist BuddyWorks IP’s.

So here am, looking for a solution to bypass restriction. Currently, I’m investigating SSH reverse for , but not sure I’m on good path. Any help would be appreciated!

1

There are 1 answers

0
ZoliRkty On

I ended up writing a small http->ssh proxy server with basic authentication which receives commands from pipeline via post requests and connects to the host server via ssh, executes the commands and logs to slack.