Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pawelwar/jumpscript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Jumpscript

Create servers list

{
	"name":	{
		"user"   : "optional__user", 
		"ip"     : "host_or_ip"
	},
	"example with rsa key":	{
		"user"   : "www-data", 
		"ip"     : "my-server-dev.example.com", 
		"id_rsa" : "/Users/wareq/.ssh/id_rsa"
	},
	"example all possible parameters":	{
		"user"   : "www-data", 
		"ip"     : "my-server-test.example.com", 
		"port"   : 22, 
		"id_rsa" : "/Users/wareq/.ssh/id_rsa", 
		"args"   : "-v"
	}
}

Call the jumpscript

 ss example

The script will ask you which of the server you would like to connect:

  1. DEV example ( [email protected]:22 )
  2. TEST example ( [email protected]:22 ) Enter a number for a server ( or q to quit ):
ss dev example

Only one server match the pattern. The Script will direct connect you to my-server-dev.example.com

What has changed?

This is fork of nullworks-ss project. Changes:

  • The code has been cleaned up
  • "Connect" method was extracted
  • New "id_rsa" parameter in servers.json
  • I have resigned from converting csv to json. If you would like to add new host please edit servers.json file.
  • Flow of the script was changed. Get connection name (or its parts) only from script execution arguments. Don't prompt for it.
  • Texts and colors has changed little

About

Ruby based secure shell wrapper using JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%