SSH into to a cluster of machines using iTerm 2 split panes on OSX.
Project description
ssh into to a cluster of machines using iTerm 2 split panes on OSX.
Installation
$ pip install i2ssh
Usage
$ cat ~/.i2sshrc --- mycluster: hosts: - host1.domain.net - host2.domain.net - host3.domain.net - host4.domain.net $ i2ssh mycluster
Command-line arguments
$ i2ssh -h usage: i2ssh [-h] [-c CONFIG] [-v] cluster positional arguments: cluster the cluster to connect to. optional arguments: -h, --help show this help message and exit -c CONFIG, --config CONFIG the config file to use (default "~/.i2sshrc"). -v, --verbose increases log verbosity. -l, --list list the clusters in the config file.
Config file
--- # the name of the cluster. mycluster: # the command to execute in every pane, defaults to 'ssh'. # the hostname for that pane will be appended to the # command before being executed, resulting in something # like 'ssh host1.domain.net'. cmd: 'ssh' # the remote user to log into as, defaults to the local user. user: 'username' # how to split the window, defaults to 'sqrt(n) x (n/cols)'. layout: '2x2' # position and size for the new window, defaults to # maximize within the available space on screen. the format # is (x, y, width, height). window: '0, 0, 1440, 900' # the time to wait between scripting commands, in seconds. # defaults to 0.1 delay: 0.1 # the list of hosts to execute the command for. hosts: - host1.domain.net - host2.domain.net - host3.domain.net - host4.domain.net
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
i2ssh-0.4.0.tar.gz
(9.4 kB
view details)
Built Distribution
i2ssh-0.4.0-py2.py3-none-any.whl
(10.5 kB
view details)
File details
Details for the file i2ssh-0.4.0.tar.gz
.
File metadata
- Download URL: i2ssh-0.4.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7583b4d5d669a7e4ebdd34d6da17bbe8aec803150df283befcc76ae7adccd9f2
|
|
MD5 |
ee6f0a129b0439e632ec2141c9f09432
|
|
BLAKE2b-256 |
c6be0ccacd61654f587984cfb8242f624278c141b7872dbead7e4020c7c2b7ed
|
File details
Details for the file i2ssh-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: i2ssh-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
877415313e84a37fcd77dd789c5fafd67dba2ce3a148b0b0b0e7a71090a43a50
|
|
MD5 |
3d6eaed9865abefce4d3d9374146f601
|
|
BLAKE2b-256 |
4249061c26ab848dcb83962a24375c2e0ccc866317341fcfa1a358f7163664d1
|