Skip to main content

siranga

A ssh wrapper to make life a little bit easier. Why? I am lazy

Installation

python3 -m pip install -U siranga

Usage

Set Options

siranga →                                                                                                                                                                                       
Valid commands are: 
        !connect
        !hosts
        !active
        !set
        !kill
        !exit
siranga → !set                                                                                                                                                                                  

siranga → !set h                                                                                                                                                                                

    Add/Modify ssh_config entry
    Usage:
        Update Field:
            !set <host> <field_name> <value>
        Add Entry:
            !set <host> <hostname> <user> <port>
    
siranga → !set host1 172.17.0.4 root 22                                                                                                                                                         
siranga → !set                                                                                                                                                                                  
 Host   HostName    User  Port  IdentityFile  ProxyJump 
 host1  172.17.0.4  root  22    None          None      

Connect to Host

siranga → !connect host1                                                                                                                                                                        
root@172.17.0.4's password: 
siranga (host1) → whoami                                             
root

Adding Host with ProxyJump

siranga → !set host2 172.17.0.5 root 22                                                                                                                                                         
siranga → !set                                                                                                                                                                                  
 Host   HostName    User  Port  IdentityFile   ProxyJump 
 host1  172.17.0.4  root  22    ~/.ssh/id_rsa  None      
 host2  172.17.0.5  root  22    None           None      
siranga → !set host2 ProxyJump host1                                                                                                                                                            
siranga → !set                                                                                                                                                                                  
 Host   HostName    User  Port  IdentityFile   ProxyJump 
 host1  172.17.0.4  root  22    ~/.ssh/id_rsa  None      
 host2  172.17.0.5  root  22    None           host1     
siranga → !connect host2                                                                                                                                                                        
root@172.17.0.4's password: 
root@172.17.0.5's password: 
siranga [→host1→] (host2) → ls -lAhrt                                                                                                                                                           
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
total 16K
-rw-r--r-- 1 root root  148 Aug 17  2015 .profile
-rw-r--r-- 1 root root 3.1K Apr  9  2018 .bashrc
-rw------- 1 root root  917 Mar 22 01:57 .viminfo
drwx------ 2 root root 4.0K Mar 22 01:59 .cache

siranga [→host1→host1→] (host2) → uname -a                                                                                                                                                      
Linux 9d904948ecf0 5.5.10-arch1-1 #1 SMP PREEMPT Wed, 18 Mar 2020 08:40:35 +0000 x86_64 x86_64 x86_64 GNU/Linux 

Run remote commands

siranga (host1) → w                                                                                                                                                                             
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 01:54:24 up  3:54,  0 users,  load average: 0.22, 0.34, 0.33
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT

siranga (host1) → ls -lAhrt                                               
total 16K
-rw-r--r-- 1 root root  148 Aug 17  2015 .profile
-rw-r--r-- 1 root root 3.1K Apr  9  2018 .bashrc
-rw------- 1 root root  941 Mar 22 01:51 .viminfo
drwx------ 2 root root 4.0K Mar 22 01:51 .cache

Disconnect from host but keep socket alive

siranga (host1) → !disconnect                                                                                                                                                                   
siranga → !active                                                                                                                                                                               
host1

Features

  • Multiplexing
  • Upload
  • Download
  • Socks Proxy
  • Reverse Tunnel
  • Forward Tunnel

Metadata

Release files for siranga 0.3.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for siranga 0.3.7
File Size Uploaded
siranga-0.3.7.tar.gz 12.6 kB Details

Release files / siranga-0.3.7.tar.gz

Download URL siranga-0.3.7.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8916923d68d92e60beb6175813c82940663e5091f77d0d314f15161f8ca6b085
BLAKE2b-256 checksum
How to use checksums
aebf7ef7a14c6e6b624a4a7245166c39e740da2ee021f9d906dd879bd928f030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.3.7 This release

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page