Skip to content

develmaycare/go-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Menu

The Go Menu is a command line utility providing a menu driven interface to connect to various servers. It uses a CSV file to create a dialog for selecting a given resource.

This may be useful if:

  • You have a lot of servers to which you frequently connect via SSH.
  • You run an SSH server from which connections to other servers are allowed.
  • You enjoy graphical menus.

Requirements

The Go Menu currently requires Bash and dialog.

Installation

Simply run make install from the gomenu directory. By default the go command is installed in /usr/local/bin. But you can change this by specify a prefix like so:

make install PREFIX=/path/to/my/preferred/bin

Configuration

The go command reads resources from a CSV file located in one of the following locations:

  • $HOME/.gomenu/resources.csv
  • /etc/gomenu/resources.csv
  • /opt/gomenu/resources.csv

These files are read in the order above. The columns of the CSV are as follows:

  • name - The name of the resource. Required. Cannot contain a space.
  • organization - A short code or abbreviation representing the organization that owns the resource. Required. Limited to 3 or 4 characters.
  • comment - A brief comment or description of the resource. Required. Limited to about 30 characters.
  • host - The actual host name that is the target of the connection. Required.
  • port - TCP port. Required, but defaults to 22.
  • user - The user name for the connection. Optional. Defaults to whoami.
  • protocol - Not implemented. Defaults to ssh. This is a placeholder for possibly implementing other protocols in the future.
  • key_file - The name of the key file to use for the connection.

Here some examples:

Academic,University of Education,List Server,listserv.uof.edu,,,ssh,uofe.pem
MsPiggy,ACME Inc.,Windows File Server,mspiggy.example.com,999,admin,ssh,
RedHat6,ABC Corp,Web Server,redhat6.example.com,4894,deploy,ssh,id_rsa
Venus,ACME Inc,Web Server,venus.example.com,4894,bob,ssh,bob.pem

License

The Go Menu is licensed under the MIT License. See LICENSE.txt for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published