Sign inSign up

eraclitux/ssh-key-editor

By eraclitux

Updated almost 8 years ago

Web UI to manage ssh keys

Image
1

427

eraclitux/ssh-key-editor repository overview

ssh-key-editor

Build Status

Simple, easy to install and use web based ssh keys editor.

This tools has born to ease the task of managing multiple keys on bastion hosts.

Main features

  • retrieve public keys from GitHub

  • add a time stamp to keys to see how old they are

Official repo and demo

Installation and usage

The easiest way is to use Docker image:

$ docker run -d -v /home/<ssh-user>/.ssh:/root/.ssh -p 127.0.0.1:8080:8080 eraclitux/ssh-key-editor

The daemon con only be accessed locally for security reasons, to access the web interface with a remote browser use ssh tunnelling:

ssh -v -ND 8081 <user>@<bastion-host>

and configure you browser to use it taking care to direct traffic on tunnel even for localhost, visit http://localhost:8080/ with your browser.

Change default password

To change the default password defined in the Dockerfile just pass a custom one when starting container using -e HTTP_PASSWORD=<my-passwd>.

Security considerations

Misconfiguration of this tool leads to serious security issues as unauthorized shell access. Never bind on public interfaces, if risk can be taken use an http reverse proxy with proper TLS termination to access from the internet otherwise basic auth credentials could be easily sniffed.

Always follow SSH good practices, disable access for root and always mount a normal (at most sudoer) user's .ssh with -v.

Tag summary

Content type

Image

Digest

Size

4.5 MB

Last updated

almost 8 years ago

docker pull eraclitux/ssh-key-editor