Skip to content

kaginawa/kssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

96ca33c · Aug 21, 2023

History

50 Commits
Aug 21, 2023
Jul 5, 2020
Apr 22, 2020
Apr 13, 2022
Aug 21, 2023
Feb 26, 2021
Apr 13, 2022
Apr 13, 2022
Jan 28, 2020
Jan 23, 2021
Apr 21, 2021
Apr 14, 2022

Repository files navigation

kssh

Actions 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