kssh

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

README

kssh

Actions Status Quality Gate Status Go Report Card

Kaginawa-powered SSH client.

Download

See Releases page.

Usage

Login using custom ID as the current user:

kssh <CUSTOM_ID>
# Example: kssh debug1

Login using custom ID as a different user:

kssh <USER>@<CUSTOM_ID>
# Example: alice@debug1

Login using MAC address as the current user:

kssh <MAC>
# Example: kssh f0:18:98:eb:c7:27

Login using MAC address as a different user:

kssh <USER>@<MAC>
# Example: kssh alice@f0:18:98:eb:c7:27

Login, run and exit:

kssh [<USER>@]<CUSTOM_ID|MAC> <COMMAND>
# Example: kssh debug1 uname -a
# Do not specify interactive commands (e.g. vi)

Options

  • -k <API_KEY> - specify admin API key
  • -c <CONFIG> - specify config file path
  • -s <SERVER> - specify kaginawa server address
  • -f <PROCESURE_FILE> - specify procedure (line-separated list of commands) file
  • -m <MINUTES> - specify freshness threshold by minutes (default = 15)
  • -l - listen a local port for transferring non-SSH TCP connections trough the SSH tunnel

Configuration

Default file name of the configuration file is kssh.conf and location is platform-dependent.

  • Linux: ~/config/kssh.conf
  • macOS: ~/Library/Application Support/kssh.conf
  • Windows: %AppData%\kssh.conf

Format:

AdminKey <API_KEY>
Server <SERVER>

Supported parameters:

Key Default Description
Server Host name or IP address of the kaginawa-server (e.g. http://10.128.1.100)
AdminKey API key issued at kaginawa-server
DefaultUser $USER Default login user
DefaultPassword Default password for login user (WARNING: understand security risks)

License

kssh licenced under BSD 3-Clause.

Author

mikan

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL