Home Tunneled SSH Access with Cloudflared
Post
Cancel

Tunneled SSH Access with Cloudflared

Notes on configuring ssh over cloudflared

  1. Configure cloudflare tunnel on TARGET

    Add an entry to /etc/cloudflared/config.yml

    1
    2
    
     - hostname: home.carltons.us
       service: ssh://localhost:22
    

    Remember to restart cloudflared

  2. Configure tunnel to TARGET on cloudflared dashboard

  3. Install cloudflared on the Mac:
    1
    
     brew install cloudflare/cloudflare/cloudflared
    
  4. Add this to ~/.ssh/config
    1
    2
    3
    4
    
     Host TARGET
       User mike
       IdentityFile ~/.ssh/id_ed25519
       ProxyCommand cloudflared access ssh --hostname %h
    
This post is licensed under CC BY 4.0 by the author.