Skip to content
amnonh edited this page Jun 9, 2014 · 6 revisions

OSv Shell

SSH Shell

For various use cases an SSH shell is required to be part of the image. This is specifically true for external tools that relays on SSH to connect to the system.

OSv Shell

OSv Shell is an application that would be optionally added to the image to support basic SSH shell capabilities.

The shell will heavily relay on the API, leaving minimal logic in the Shell itself and allowing to run the same code outside of the image.

The shell semantics should resemble Bash.

Building Blocks

SSH server will receive the encrypted session. Readline (with history) will handle the readline functionality (completion, shortcuts etc') Command handling will handle commands, with helper function to fetch information from the API if needed and format the result.

External Libraries

  1. SSH - libssh2
  2. Readline - bsd libedit
  3. Json Parser
Clone this wiki locally