appleboy / drone-ssh

Drone plugin for executing remote ssh commands
MIT License
239 stars 73 forks source link

May you add support to Cloudflared please? #265

Open thematrixdev opened 7 months ago

thematrixdev commented 7 months ago

Hello there,

Some of my destination servers are not directly accessible. I have configured them to be accessed via Cloudflare Tunnel (Cloudflared, WireGuard UDP VPN)

It just works like traditional SSH, but with this binary installed: https://github.com/cloudflare/cloudflared/releases/

Traditional SSH config:

Host myhost.com
User ubuntu
IdentityFile ~/.ssh/myhost.key

SSH config with Cloudflared

Host myhost.com
User ubuntu
IdentityFile ~/.ssh/myhost.key
ProxyCommand /usr/local/bin/cloudflared access ssh --hostname %h

Could you add support for this one please? Thank you very much.