forked from gravitational/teleport
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move --cluster to its correct location as a command subflag (gravitat…
- Loading branch information
Showing
19 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -865,7 +865,7 @@ This setup works as follows: | |
"main" must authenticate "east" (cluster-to-cluster authentication) when the | ||
tunnel is established, and "east" must trust users connecting from "main" | ||
(user authentication). | ||
3. Users of "main" must use `tsh --cluster=east` flag if they want to connect to any nodes in "east". | ||
3. Users of "main" must use `tsh` commands with the `--cluster=east` flag if they want to connect to any nodes in "east". | ||
4. Users of "main" can see other trusted clusters connected to "main" by running `tsh clusters` | ||
|
||
### Example Configuration | ||
|
@@ -963,15 +963,15 @@ main online | |
east online | ||
|
||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
|
||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
|
||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
## HTTP CONNECT Proxies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1006,7 +1006,7 @@ This setup works as follows: | |
"main" must authenticate "east" (cluster-to-cluster authentication) when the | ||
tunnel is established, and "east" must trust users connecting from "main" | ||
(user authentication). | ||
3. Users of "main" must use `tsh --cluster=east` flag if they want to connect to any nodes in "east". | ||
3. Users of "main" must use `tsh` commands with the `--cluster=east` flag if they want to connect to any nodes in "east". | ||
4. Users of "main" can see other trusted clusters connected to "main" by running `tsh clusters` | ||
|
||
### Example Configuration | ||
|
@@ -1098,15 +1098,15 @@ main online | |
east online | ||
|
||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
|
||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
|
||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
## Github OAuth 2.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1099,7 +1099,7 @@ $ tsh ssh host | |
|
||
# SSH into the host located in another cluster called "east" | ||
# The connection is established through main.example.com: | ||
$ tsh --cluster=east ssh host | ||
$ tsh ssh --cluster=east host | ||
|
||
# See what other clusters are available | ||
$ tsh clusters | ||
|
@@ -1227,15 +1227,15 @@ main online | |
east online | ||
|
||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
|
||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
|
||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
### Disabling Trust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ $ tsh ssh host | |
|
||
# SSH into the host located in another cluster called "east" | ||
# The connection is established through main.example.com: | ||
$ tsh --cluster=east ssh host | ||
$ tsh ssh --cluster=east host | ||
|
||
# See what other clusters are available | ||
$ tsh clusters | ||
|
@@ -210,7 +210,7 @@ east online | |
|
||
```bash | ||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
|
||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
|
@@ -220,7 +220,7 @@ db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | |
|
||
```bash | ||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ $ tsh ssh host | |
|
||
# SSH into the host located in another cluster called "east" | ||
# The connection is established through main.example.com: | ||
$ tsh --cluster=east ssh host | ||
$ tsh ssh --cluster=east host | ||
|
||
# See what other clusters are available | ||
$ tsh clusters | ||
|
@@ -210,7 +210,7 @@ east online | |
|
||
```bash | ||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
|
||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
|
@@ -220,7 +220,7 @@ db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | |
|
||
```bash | ||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1203,7 +1203,7 @@ $ tsh ssh host | |
# SSH into the host located in another cluster called "east" | ||
# The connection is established through main.example.com: | ||
$ tsh --cluster=east ssh host | ||
$ tsh ssh --cluster=east host | ||
# See what other clusters are available | ||
$ tsh clusters | ||
|
@@ -1342,15 +1342,15 @@ main online | |
east online | ||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
### Disabling Trust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1324,7 +1324,7 @@ $ tsh ssh host | |
# SSH into the host located in another cluster called "east" | ||
# The connection is established through main.example.com: | ||
$ tsh --cluster=east ssh host | ||
$ tsh ssh --cluster=east host | ||
# See what other clusters are available | ||
$ tsh clusters | ||
|
@@ -1463,15 +1463,15 @@ main online | |
east online | ||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
### Disabling Trust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1449,15 +1449,15 @@ main online | |
east online | ||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
### Disabling Trust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1311,7 +1311,7 @@ $ tsh ssh host | |
# SSH into the host located in another cluster called "east" | ||
# The connection is established through main.example.com: | ||
$ tsh --cluster=east ssh host | ||
$ tsh ssh --cluster=east host | ||
# See what other clusters are available | ||
$ tsh clusters | ||
|
@@ -1450,15 +1450,15 @@ main online | |
east online | ||
# see the list of machines (nodes) behind the eastern cluster: | ||
$ tsh --cluster=east ls | ||
$ tsh ls --cluster=east | ||
Node Name Node ID Address Labels | ||
--------- ------------------ -------------- ----------- | ||
db1.east cf7cc5cd-935e-46f1 10.0.5.2:3022 role=db-master | ||
db2.east 3879d133-fe81-3212 10.0.5.3:3022 role=db-slave | ||
# SSH into any node in "east": | ||
$ tsh --cluster=east ssh [email protected] | ||
$ tsh ssh --cluster=east [email protected] | ||
``` | ||
|
||
### Disabling Trust | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.