Add scope to proxy command

This commit is contained in:
Melbex De Leon 2023-04-28 16:51:01 +08:00
parent 455001110f
commit 9bccfd60e5
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ const (
Add to your {{.Home}}/.ssh/config: Add to your {{.Home}}/.ssh/config:
{{- if .ShortLivedCerts}} {{- if .ShortLivedCerts}}
Host cfpipe-{{.Hostname}}
{{- if eq .OS "windows"}} {{- if eq .OS "windows"}}
ProxyCommand {{.Cloudflared}} access ssh-gen --hostname %h && ssh -tt %r@cfpipe-{{.Hostname}} >&2 <&1 ProxyCommand {{.Cloudflared}} access ssh-gen --hostname %h && ssh -tt %r@cfpipe-{{.Hostname}} >&2 <&1
{{- else}} {{- else}}