Skip to content

Commit

Permalink
Merge pull request #413 from gravitational/sasha/fixlogin
Browse files Browse the repository at this point in the history
Env var for TELEPORT_USER, refs #408
  • Loading branch information
kontsevoy committed May 10, 2016
2 parents 4540f90 + 39d9f07 commit 566345b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/tsh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func run(args []string, underTest bool) {
// configure CLI argument parser:
app := utils.InitCLIParser("tsh", "TSH: Teleport SSH client").Interspersed(false)
app.Flag("login", "Remote host login").Short('l').Envar("TELEPORT_LOGIN").StringVar(&cf.NodeLogin)
app.Flag("user", fmt.Sprintf("SSH proxy user [%s]", client.Username())).StringVar(&cf.Username)
app.Flag("user", fmt.Sprintf("SSH proxy user [%s]", client.Username())).Envar("TELEPORT_USER").StringVar(&cf.Username)
app.Flag("auth", "[EXPERIMENTAL] Use external authentication, e.g. 'google'").Envar("TELEPORT_AUTH").Hidden().StringVar(&cf.ExternalAuth)
app.Flag("site", "[EXPERIMENTAL] Specify site to connect to via proxy").Envar("TELEPORT_SITE").Hidden().StringVar(&cf.SiteName)
app.Flag("proxy", "SSH proxy host or IP address").Envar("TELEPORT_PROXY").StringVar(&cf.Proxy)
Expand Down

0 comments on commit 566345b

Please sign in to comment.