Files
kong/_examples/server
dependabot[bot] a9be85c4d3 Bump golang.org/x/crypto in /_examples/server (#352)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20200117160349-530e935923ad to 0.1.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-24 17:39:03 -08:00
..

An interactive SSH server

In addition to command-lines, Kong can be used interactively. This example serves a Kong command-line over SSH.

Run with go run . then ssh to it like so:

$ ssh -p 6740 127.0.0.1
Welcome!
> ?

Example using Kong for interactive command parsing.

Commands:
  help [<command> ...]
    Show help.

  status
    Show server status.

> status
OK
> help status

Show server status.

Flags:
  -v, --verbose    Show verbose status information.

> status 
OK
> status -v
OK
> status foo
error: unexpected argument foo

Show server status.

Flags:
> ^D