-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mfa: support multiple U2F keys on CLI login (#5484)
After adding several U2F tokens with `tsh mfa add`, you can now `tsh login` using any of those tokens. Two caveats: 1. The MFA method you get prompted for on login depends on the `second_factor` config field on the auth server. There isn't yet an option to require _either_ TOTP or U2F yet, even if you have both kinds registered. 2. Web logins still need updating. Also a few small unrelated changes: - remove u2f-host binary presence check and docs - hide `tsh mfa` commands until the feature is complete
- Loading branch information
Showing
10 changed files
with
96 additions
and
43 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 |
---|---|---|
|
@@ -356,10 +356,8 @@ start using U2F: | |
|
||
* Enable U2F in Teleport configuration `/etc/teleport.yaml` . | ||
|
||
* For CLI-based logins you have to install [u2f-host](https://developers.yubico.com/libu2f-host/) utility. | ||
|
||
* For web-based logins you have to use Google Chrome and Firefox 67 or greater, are the only | ||
supported U2F browsers at this time. | ||
* For web-based logins, check that your browser [supports | ||
U2F](https://caniuse.com/u2f). | ||
|
||
``` yaml | ||
# snippet from /etc/teleport.yaml to show an example configuration of U2F: | ||
|
@@ -393,29 +391,12 @@ pointing to a JSON file that mirrors `facets` in the auth config. | |
|
||
**Logging in with U2F** | ||
|
||
For logging in via the CLI, you must first install | ||
[u2f-host](https://developers.yubico.com/libu2f-host/). Installing: | ||
|
||
``` bash | ||
# OSX: | ||
$ brew install libu2f-host | ||
# Ubuntu 16.04 LTS: | ||
$ apt-get install u2f-host | ||
``` | ||
|
||
Then invoke `tsh ssh` as usual to authenticate: | ||
Invoke `tsh ssh` as usual to authenticate: | ||
|
||
``` bash | ||
$ tsh --proxy <proxy-addr> ssh <hostname> | ||
``` | ||
|
||
!!! tip "Version Warning" | ||
|
||
External user identities are only supported in [Teleport Enterprise](enterprise/introduction.md). | ||
|
||
Please reach out to [[email protected]](mailto:[email protected]) for more information. | ||
|
||
## Adding and Deleting Users | ||
|
||
This section covers internal user identities, i.e. user accounts created and | ||
|
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
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
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