Skip to content
jamespwilliamsPublic

About

One-Time SSH Daemon

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

One-Time SSH Daemon

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

⌂ 换网址