SSH servers exposed via Cloudflare Tunnel require a special setup to connect to them. See Cloudflare Tunnel documentation for more information.
This GitHub Action sets up everything required to connect to an SSH server exposed via Cloudflare Tunnel from inside of a runner.
Warning
This action only supports Ubuntu runners.
jobs:
do-the-thing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup SSH client for Cloudflare Tunnel
uses: tichopad/setup-cloudflared-ssh-client@v1
with:
hostname: example.com
- name: Connect to SSH server
run: ssh -T [email protected] 'echo "Hello, world!"'
You can combine this action with tichopad/setup-ssh-client for a general SSH client setup with Cloudflare Tunnels:
jobs:
do-the-thing:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup SSH client
uses: tichopad/setup-ssh-client@v1
with:
ssh-key: ${{ secrets.SSH_KEY }}
- name: Setup SSH client for Cloudflare Tunnel
uses: tichopad/setup-cloudflared-ssh-client@v1
with:
hostname: example.com
- name: Connect to SSH server
run: ssh -T [email protected] 'echo "Hello, world!"'