AUTH-1802: Fixed ssh-config templating

This commit is contained in:
Austin Cherry 2019-05-29 15:31:09 -05:00
parent babcd9fe2b
commit 713a2d689e
1 changed files with 2 additions and 2 deletions

View File

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