commit 34c6333e6e92a232a5f9aa667ebcd2aed32455fb from: Oliver Lowe date: Mon Dec 19 00:05:56 2022 UTC add knocknocauth(1) man page commit - 4fdc0fac5db457c34ea844b8979998f5150a2834 commit + 34c6333e6e92a232a5f9aa667ebcd2aed32455fb blob - /dev/null blob + 10cd803e066344581ea6e901695ab08bfa3a591e (mode 644) --- /dev/null +++ man/knocknocauth.1 @@ -0,0 +1,50 @@ +.Dd +.Dt KNOCKNOCAUTH 1 +.Os +.Sh NAME +.Nm knocknocauth +.Nd create and close knocknoc sessions +.Sh SYNOPSIS +.Nm knocknocauth +.Op -c +.Ar host ... +.Sh DESCRIPTION +.Nm +authenticates and creates a new session with each Knocknoc +.Ar host . +.Pp +Credentials for +.Ar host +may be provided in a credentials file. +Credentials files consists of two lines. +The first line is a knocknoc username, +and the second line is their password. +.Nm +searches the default user configuration directory +for a file with the same name as +.Ar host . +.Pp +If no matching credentials file can be found, +.Nm +prompts for a username and password. +.Pp +The -c flag can be set to close any existing sessions with +.Ar host . +.Sh EXIT STATUS +.Ex +.Sh EXAMPLES +Create sessions with +.Ar login.example.com +and +.Ar vendoraccess.example.net : +.Pp +.Dl knocknocauth login.example.com vendoraccess.example.net +.Pp +A credentials file for the user oliver.lowe@company.example at login.example.com +would be at +.Pa $HOME/.config/knocknoc/login.example.com +with the following contents: +.Bd -literal -offset indent +oliver.lowe@company.example +SecretPassword1234 +.Ed