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}}