Private cloud shell history. Open source server for bashhub https://github.com/rcaloras/bashhub-client
Find a file
nicksherron f13c5beb73 README
2020-02-10 01:38:49 -05:00
.github/workflows first release 2020-02-09 20:40:58 -05:00
cmd internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
internal internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
scripts internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
.gitignore first release 2020-02-09 20:44:29 -05:00
AUTHORS.md Initial Commit. 2020-02-07 03:02:18 -05:00
CONTRIBUTING.md Initial Commit. 2020-02-07 03:02:18 -05:00
Dockerfile internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
go.mod internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
go.sum internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
LICENSE LICENSE 2020-02-10 00:41:37 -05:00
main.go internal/db: unexport db var and dbInit; cmd/root: startup message; internal/server: custom log 2020-02-10 00:39:57 -05:00
Makefile version command 2020-02-09 20:35:45 -05:00
README.md README 2020-02-10 01:38:49 -05:00

bashhub-server

bashub-server is a open-source server for bashhub-client with some added features like regex search.

Features

  • All the benefits of bashhub without having to send your shell history to a third-party
  • Regex search
  • Very simple and easy to install and get running with existing bashhub-client
  • Written in Go so it's fast and is actively maintained

Why?

I love the idea behing bashhub. Having my shell history centralized and queryable from various systems whether it be my home computer or from an ssh session on a server is great. BUT not if that means sending my shell history to a third-party, regardless of their intentions or trustworthiness, so bashhub-server was created.

Installation

Homebrew or Linuxbrew

brew install bashhub-server/latest/bashhub-server

Docker

docker pull nicksherron/bashhub-server

Releases

Static binaries for various os and architectures can be found in releases. If your system is not listed just add an issue requesting your os and architecture.

Usage

bashhub-server --help

Usage:
   [flags]
   [command]

Available Commands:
  help        Help about any command
  version     Print the version number and build info

Flags:
  -a, --addr string   Ip and port to listen and serve on. (default "0.0.0.0:8080")
      --db string     DB location (sqlite or postgres)
  -h, --help          help for this command
      --log string    Set filepath for HTTP log. "" logs to stderr.

Use " [command] --help" for more information about a command.

Just run the server

bashhub-server

or on docker

docker run -d -p 8080:8080 --name bashhub-server  nicksherron/bashhub-server 

Then add export BH_HOST=localhost:8080 (or whatever you set your bashhub-server address to) to your .zshrc or .bashrc

Thats it!