Just a quick and dirty login wrapper for an SSH gateway server
- Written entirely in Curses::UI / Perl
- Fast, secure, and light-weight
- Mouse support
- Fuzzyfinder search supported (requires
fzf
) - Works in any terminal down to 80x25 (or smaller with help file disabled)
- Fully configurable – see lines 10-20 for available options
- Run
sudo apt install libcurses-ui-perl fzf
to get the necessary dependencies. - Create a login user, and add your SSH pubkey to their authorized_keys. Make sure you can login.
- Copy/clone the contents of bin/ to /usr/local/bin/.
- Edit /etc/passwd and set the login shell of the login user to /usr/local/bin/ssh-user-shell.sh
- Before logging out, open a new ssh session and test the new user. The new user should be able to access a help screen by pressing [h].
- Done!