Skip to content

GitHub Action for setting up everything required to connect to an SSH server exposed via Cloudflare Tunnel from a GitHub Actions runner.

License

Notifications You must be signed in to change notification settings

tichopad/setup-cloudflared-ssh-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

setup-cloudflared-ssh-client

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.

Usage

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!"'

About

GitHub Action for setting up everything required to connect to an SSH server exposed via Cloudflare Tunnel from a GitHub Actions runner.

Resources

License

Stars

Watchers

Forks

Packages

No packages published