# Functions
No description provided by the author
FullProfilePath returns the full path to the user profile directory.
GetTokenFromHOTPMockFile opens HOTPMock from file, gets token value, increases hotp and saves it to the file.
No description provided by the author
No description provided by the author
NewClient creates a TeleportClient object and fully configures it.
NewFSLocalKeyStore creates a new filesystem-based local keystore object and initializes it.
NewLocalAgent loads all the saved teleport certificates and creates ssh agent with them.
ParseLabelSpec parses a string like 'name=value,"long name"="quoted value"` into a map like { "name" -> "value", "long name" -> "quoted value" }.
ParsePortForwardSpec parses parameter to -L flag, i.e.
ProfileFromDir reads the user profile from a given directory.
ProfileFromFile loads the profile from a YAML file.
If there's a current profile symlink, remove it.
Username returns the current user's username.
# Constants
CurrentProfileSymlink is a filename which is a symlink to the current profile, usually something like this:
~/.tsh/profile -> ~/.tsh/staging.yaml
.
Directory location where tsh profiles (and session keys) are stored.
No description provided by the author
# Structs
ClientProfile is a collection of most frequently used CLI flags for "tsh".
Config is a client config.
ForwardedPort specifies local tunnel to remote destination managed by the client, is equivalent of ssh -L src:host:dst command.
FSLocalKeyStore implements LocalKeyStore interface using the filesystem Here's the file layout for the FS store: ~/.tsh/ ├── known_hosts --> trusted certificate authorities (their keys) in a format similar to known_hosts └── sessions --> server-signed session keys └── host-a | ├── cert | ├── key | └── pub └── host-b ├── cert ├── key └── pub.
HOTPMock is a HOTP that can be saved or load from file Using HOTPMock disables the hotp security level, don't use it in production.
Key describes a complete (signed) client key.
No description provided by the author
NodeClient implements ssh client to a ssh node (teleport or any regular ssh node) NodeClient can run shell and commands or upload and download files.
No description provided by the author
ProxyClient implements ssh client to a teleport proxy It can provide list of nodes or connect to nodes.
TeleportClient is a wrapper around SSH client with teleport specific workflow built in.
# Interfaces
LocalKeyStore interface allows for different storage back-ends for TSH to load/save its keys.
# Type aliases
No description provided by the author
HostKeyCallback is called by SSH client when it needs to check remote host key or certificate validity.
No description provided by the author
ShellCreatedCallback can be supplied for every teleport client.