diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4eba16e --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +PREFIX ?= /usr/local +BINDIR ?= $(PREFIX)/bin +MANDIR ?= $(PREFIX)/share/man/man1 + +install: + @echo Installing the executable to $(BINDIR) + @mkdir -p $(BINDIR) + @install -m 755 lssh $(BINDIR) + @echo Installing the manual page to $(MANDIR)/man1 + @mkdir -p $(MANDIR) + @install -m 644 lssh.1 $(MANDIR) +endif + +uninstall: + @echo Removing the executable from $(BINDIR) + @rm -f $(BINDIR)/lssh + @echo Removing the manual page from $(MANDIR)/man1 + @rm -f $(BINDIR)/man1/lssh.1 +endif + +.PHONY: install uninstall diff --git a/lssh.1 b/lssh.1 new file mode 100644 index 0000000..d5bffb1 --- /dev/null +++ b/lssh.1 @@ -0,0 +1,8 @@ +.TH LSSH 1 "18 Apr 2019" "version 2019.04.18" +.SH NAME +lssh \- a wrapper for Lastpass CLI and ssh-agent +.SH SYNOPSIS +lssh [options] [ssh-key] +.SH DESRIPTION +lssh quickly activates ssh-keys by name, filling passwords via Lastpass CLI, and +adding them to ssh-agent. Keys are activated for 1-hour at a time.