diff --git a/tool/tsh/common/help.go b/tool/tsh/common/help.go index 6ab22f0adc8fc..3810edc053d3d 100644 --- a/tool/tsh/common/help.go +++ b/tool/tsh/common/help.go @@ -40,10 +40,10 @@ EXAMPLES: For passwordless authentication use: $ tsh login --auth=passwordless` - // missingPrincipalsFooter is printed at the bottom of `tsh ls` when no results are returned. - missingPrincipalsFooter = ` - Not seeing nodes? Your user may be missing Linux principals. If trying Teleport for the first time, follow this guide: + // emptyNodesFooter is printed at the bottom of `tsh ls` when no results are returned for nodes. + emptyNodesFooter = ` + Not seeing nodes? Either no nodes are available or your user's roles do not match the labels of at least one node. -https://goteleport.com/docs/getting-started/linux-server/#step-46-create-a-teleport-user-and-set-up-two-factor-authentication + Check with your Teleport cluster administrator that your user's roles should have nodes available. ` ) diff --git a/tool/tsh/common/tsh.go b/tool/tsh/common/tsh.go index 4369620e2003f..7ff575a5e2fbc 100644 --- a/tool/tsh/common/tsh.go +++ b/tool/tsh/common/tsh.go @@ -2268,7 +2268,7 @@ func listNodesAllClusters(cf *CLIConf) error { // Sometimes a user won't see any nodes because they're missing principals. if len(listings) == 0 { - if _, err := fmt.Fprintln(cf.Stderr(), missingPrincipalsFooter); err != nil { + if _, err := fmt.Fprintln(cf.Stderr(), emptyNodesFooter); err != nil { return trace.Wrap(err) } } @@ -2466,7 +2466,7 @@ func printNodes(nodes []types.Server, conf *CLIConf) error { // Sometimes a user won't see any nodes because they're missing principals. if len(nodes) == 0 { - if _, err := fmt.Fprintln(conf.Stderr(), missingPrincipalsFooter); err != nil { + if _, err := fmt.Fprintln(conf.Stderr(), emptyNodesFooter); err != nil { return trace.Wrap(err) } }