Skip to content

Chr0my/tssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

tssh (TmuxSSH) provide a way to connect to multiple ssh hosts easily, based on a list of clusters defined in the configuration

Prerequisites

  • tmux installed

On mac:

$ brew install tmux

On Debian/Ubuntu:

$ apt update && apt install tmux

Installation

$ git clone https://github.com/Chr0my/tssh.git ${WORKDIR}/
$ cd /usr/local/bin
$ ln -s ${WORKDIR}/tssh/tssh.sh tssh
$ cp ${WORKDIR}/tssh/tssh.conf.dist ${HOME}/.tssh.conf

Then reload your shell.

The configuration file .tssh.conf contains all clusters and is easily modifiable

Usage

This will open a new splitted tmux window

Running

$ tssh
Here the list of clusters.
Use "tssh list [cluster_name]" to list all hosts in the cluster
0) : testing_cluster1   1) : testing_cluster2   2) : testing_all        3) : prod_cluster1
Select a cluster to connect to: 

Listing

$ tssh list testing_cluster1
host1
host2

$ tssh list testing_all
host1
host2
host3
host4

Adding a cluster

If you want to add a cluster:

In ${HOME}/.tssh.conf:

new_cluster="host1
    host2
    host3"
all_clusters=(
testing_cluster1,
testing_cluster2,
[...]
new_cluster)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages