Important: Termius CLI has been deprecated.
The Termius CLI (command line interface) utility provides a method of interacting with Termius outside of the application itself. It is written in Python and can be installed on Linux, macOS, or Windows (via Windows Subsystem for Linux or Cygwin).
You can also use this utility to import, export, backup, and sync your SSH configuration on your machine to your Termius.com account. Using this functionality allows you to keep your SSH configuration in sync with Termius, providing maximum integration for software and tools that require OpenSSH.
Installation
Install Script:
curl -sSL https://raw.githubusercontent.com/Crystalnix/termius-cli/master/bootstrap.sh | bash
PIP:
pip install -U termius
easy_install:
easy_install -U termius
Homebrew:
brew install Termius
Install Windows Subsystem for Linux (Debian or Ubuntu preferred), then make sure Python is installed:
sudo apt install python python-pip
Then install via PIP:
pip install -U termius
You may use Cygwin as well, but Windows Subsystem for Linux is recommended. If you choose to use Cygwin, make sure to install Python, then use PIP or easy_install to install Termius CLI as described above.
Please note that WSL requires Windows 10.
Usage
Demonstration
Please watch this demonstration video for usage examples.
Init
termius init
Login
Allows you to login to your Termius.com account.
termius login
Pull
Pull your data from Termius.com (requires login first).
termius pull
Push
Push your data to Termius.com (requires login first).
termius login
Create a Host
This function allows you to create a host. You must run push afterward to sync to your Termius.com account.
termius host --address localhost --label myhost
Import Hosts from Config
Use this to import your ~/.ssh/config file to your Termius.com account.
termius import-ssh-config
If you wish to have Termius ignore a particular host entry in your SSH configuration, you may add the comment termius:ignore
in the host definition.
For example, this entry:
Host my-host
# termius:ignore
HostName example.com
User my-user
Will not be imported.
Export Hosts to SSH
Export (or backup) your Termius.com settings into an OpenSSH-compatible config file.
termius export-ssh-config
The resulting file will be created in ./termius/sshconfig.
Connect to a Host
Connect to a host as defined in your Termius.com account.
termius connect myhost
Termius CLI Utility Source
Check out the Termius CLI utility source code and documentation on GitHub.
The termius-cli program needs to be updated to support the new encryption method.
Please update CLI
# termius init
Initializing Termius CLI...
Please enter your Termius credentials
Username: <username>
Password: *******
Can not login!
The current version of Termius CLI is incompatible with new Termius encryption algorithms.