Skip to content

eraclitux/ssh-key-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

See it in action

Image

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.

Notes

The small Docker image (~5MB compressed) has been created with go-mini-container.

About

Web UI to manage ssh keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published