tssh
is a wrapper around the Teleport CLI client, designed to simplify connections to servers by enabling autocompletion and fuzzy searching. This project aims to streamline the process of connecting to servers via the command line, making it more intuitive and user-friendly.
- MacOS - For now, it only supports MacOS
- Teleport CLI
- Golang
go install github.com/Firebain/tssh@latest
tssh cache prune
rm $(which tssh)
tssh
uses the same authentication method as tsh
. Ensure you have logged in using tsh
at least once:
tsh login --proxy=teleport.example.com
Simply run tssh
by calling it in the console:
tssh
tssh
supports automatic authorization with password and OTP when your session is expired.
To enable automatic authorization, use the following command:
tssh login
This command will prompt you for your password and OTP secret, and then store it in keychain.
To disable the automatic authorization feature, simply run:
tssh logout
This command will remove the password and OTP secret from keychain.
Under the hood, tssh uses a cache for the list of servers.
Returns the path to the cache file.
tssh cache location
Completely deletes the cache folder.
tssh cache prune
To update cached server list while running tssh
, press ctrl+r
.
To change the SSH user while running tssh
, press ctrl+u
.
This project is licensed under the MIT License. See the LICENSE file for more details.