Skip to content

Bash script to check if a jumphost is needed. Based on a ruby script to do the same produced by devops.

Notifications You must be signed in to change notification settings

jagnetta/jumphost_required

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jumphost_required

Bash script to check if a jumphost is needed. Based on a ruby script to do the same produced by devops.

Link to the original script, and general usage: https://wiki.fuze.global/display/INF/How+To+Use+A+Jumphost+in+your+SSH+Client+Configurations jumphost_required.rb is ther original ruby script from that website.

This provides a script and an SSH config file to use for your host to use a jumphost or not.

Step 1: Rename the file ssh_config to $HOME/.ssh/config

Step 2: Edit $HOME/.ssh/config and enter the values requested from the comments (e.g., username, jumphost, and the path to the jumphost_required script)

Step 3: Move the jumphost_required script to a location in your path, or specify the full path in the $HOME/.ssh/config script

The "tester" script acts as a tester for the SSH system. Run it from the same directory where you've installed jumphost_required.sh if you wish. It's not required for jumphost_required.sh

Enter a hostname to see if it needs a jumphost. ./tester

About

Bash script to check if a jumphost is needed. Based on a ruby script to do the same produced by devops.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published