From 713a2d689efb35015f629577f1b1634b986265d6 Mon Sep 17 00:00:00 2001 From: Austin Cherry Date: Wed, 29 May 2019 15:31:09 -0500 Subject: [PATCH] AUTH-1802: Fixed ssh-config templating --- cmd/cloudflared/access/cmd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cloudflared/access/cmd.go b/cmd/cloudflared/access/cmd.go index 081b7548..ede81c6c 100644 --- a/cmd/cloudflared/access/cmd.go +++ b/cmd/cloudflared/access/cmd.go @@ -3,10 +3,10 @@ package access import ( "errors" "fmt" - "html/template" "net/url" "os" "strings" + "text/template" "github.com/cloudflare/cloudflared/cmd/cloudflared/shell" "github.com/cloudflare/cloudflared/cmd/cloudflared/token" @@ -31,7 +31,7 @@ Add this configuration block to your {{.Home}}/.ssh/config: Host {{.Hostname}} {{- if .ShortLivedCerts}} - ProxyCommand bash -c '{{.Cloudflared}} access ssh-gen --hostname %h; ssh -tt cfpipe >&2 <&1' + ProxyCommand bash -c '{{.Cloudflared}} access ssh-gen --hostname %h; ssh -tt cfpipe-{{.Hostname}} >&2 <&1' Host cfpipe-{{.Hostname}} HostName {{.Hostname}}