Skip to content

This is a WIP of robinparisi/ssh-manager that will be merged later. USING DEV VERSION MAY KILL KITTENS.

Notifications You must be signed in to change notification settings

A-xis/ssh-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

SSH Manager

A simple script to manage ssh connections on *inx ( Such as UNIX, Linux, Mac OS, etc)

screenshot

Basic introduction

This shell script maintains a file database named " servers " which located in "$HOME/.ssh-manager/servers". With this sh, you can use its list to help you remember which hosts you can connect to and what username and ip and port are them.

You can customize it with more powerfull functions to easy and widly use.

You may want to use the idn2 package if you use non ASCII domain.

Thanks!

# ./ssh-manager.sh add local1:root:localhost:22
new alias 'local:root:localhost:22' added
# ./ssh-manager.sh add local2:root:127.0.0.1:22
new alias 'local:root:127.0.0.1:22' added
# ./ssh-manager.sh add local3:root:10.20.0.7:22
new alias 'local:root:10.20.0.7:22' added
# ./ssh-manager.sh
List of availables servers for user root:
[UP]  local1          root@localhost:22
[UP]  local2          [email protected]:22
[KO]  local3          [email protected]:22

List of availables commands:
/usr/bin/rssh co	<alias> [username]		connect to server
/usr/bin/rssh add	<alias>:<user>:<host>:[port]	add new server
/usr/bin/rssh add	<user>@<host>			add new server
/usr/bin/rssh del	<alias>				delete server
/usr/bin/rssh export					export config
# cat .ssh_servers 
local:root:localhost:22:
local:root:127.0.0.1:22:
local:root:10.20.0.7:22:
#

Installation

$ cd ~
$ wget --no-check-certificate https://raw.github.com/robinparisi/ssh-manager/master/ssh-manager.sh
$ chmod +x ssh-manager.sh
$ ./ssh-manager.sh

For more convenience, you can create an alias into your .bashrc, .zshrc, etc...

For example :

alias sshs="/Users/robin/ssh-manager.sh"

Use

co  <alias> [username]
add <alias>:<user>:<host>:[port]
del <alias>
export

Authors and Contributors

Original script by Errol Byrd Copyright (c) 2010, Errol Byrd

Modified by Robin Parisi (@robinparisi) Contributors :

  • Pierre Carré (@pierrecarre)
  • Guodong Ding (@DingGuodong)
  • Vivien Frenot (@A-xis)

About

This is a WIP of robinparisi/ssh-manager that will be merged later. USING DEV VERSION MAY KILL KITTENS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%