When I issue a tunnel list command: ./cloudflared tunnel list, I see:
“You have no tunnels, use ‘cloudflared tunnel create’ to define a new tunnel”
However, when I run:
./cloudflared --origincert /root/.cloudflared/cert.pem --no-tls-verify --hostname ssh.mydomain.com --url ssh://localhost:22
I see:
2021-02-16T17:47:00Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]
2021-02-16T17:47:00Z INF Version 2021.2.2
2021-02-16T17:47:00Z INF GOOS: linux, GOVersion: devel +11087322f8 Fri Nov 13 03:04:52 2020 +0100, GoArch: amd64
2021-02-16T17:47:00Z INF Settings: map[hostname:ssh.mydomain.com no-tls-verify:true origincert:/root/.cloudflared/cert.pem url:ssh://localhost:22]
2021-02-16T17:47:00Z INF Environmental variables map[TUNNEL_ORIGIN_CERT:/root/custom/cloudflared/cert.pem]
2021-02-16T17:47:00Z INF cloudflared will not automatically update when run from the shell. To enable auto-updates, run cloudflared as a service: https://developers.cloudflare.com/argo-tunnel/reference/service/
2021-02-16T17:47:00Z INF Initial protocol h2mux
2021-02-16T17:47:00Z INF Starting metrics server on 127.0.0.1:33965/metrics
2021-02-16T17:47:01Z INF Connection established connIndex=0 location=ATL
2021-02-16T17:47:02Z ERR Register tunnel error from server side error=“There is already an active tunnel for ssh.mydomain.com. To distribute requests between multiple origins, use Cloudflare Load Balancer. Existing tunnels not using the Load Balancer will need to be registered again” connIndex=0
2021-02-16T17:47:02Z INF Tunnel server stopped
2021-02-16T17:47:02Z ERR Initiating shutdown error=“There is already an active tunnel for ssh.mydomain.com. To distribute requests between multiple origins, use Cloudflare Load Balancer. Existing tunnels not using the Load Balancer will need to be registered again”
2021-02-16T17:47:03Z INF Metrics server stopped
There is already an active tunnel for ssh.mydomain.com. To distribute requests between multiple origins, use Cloudflare Load Balancer. Existing tunnels not using the Load Balancer will need to be registered again