otsshd

command module
v0.0.0-...-e9624f4 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 23 Imported by: 0

README

otsshd

One-Time SSH Daemon, written in Go.

Inspired by the proposal in https://github.com/grncdr/otssh.

Install

go get github.com/jamespwilliams/otsshd

Usage

usage: otsshd [-addr=:2022] [-copy-env] [-log=<filename>]
              [-announce=<cmd>] [-timeout=600] [-authorized-keys=<filename>]

Starts an SSH server with a new host key that will run for exactly one session.
The generated host key will be printed to stdout.

Options

Flag Type Description Default
-addr string Address to listen for connections on. :2022
-announce string Command which will be invoked with the generated host key as its first argument.
-authorized-keys string Path to file containing the public keys of users who will be allowed access to the SSH server. Should be in the same format as the OpenSSH authorized_keys file. The file will be read from stdin if this flag isn't provided.
-copy-env bool Copy environment variables to the child session. true
-log string Path to log session input and output to. otssh.log
-timeout int Time to wait for a connection before exiting, in seconds. 600

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