Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Dockssh, ssh into any container from anywhere with the help of redis for password storage

Notifications You must be signed in to change notification settings

AurelienLavorel/dockssh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockssh

Dockssh, ssh into any container from anywhere

Why

  • For learning and fun
  • Wasting some free time in my weekend :D
  • For testing/staging/development environments

How it works

  • Dockssh running on port 22022 on host example.com
  • A user connects to dockssh i.e ssh -p 22022 [email protected]
  • Dockssh checks if the user provided password is the same as the one stored in redis key dockssh:container1:pass
  • On success, Dockssh will open a PTY (pseudotty) to docker exec -it container1 /bin/sh
  • Have fun ^^! (replace container1 with any of your containers)

Why redis for configurations

  • No configurations files
  • Simple & tiny
  • Makes Dockssh loads configurations in realtime, no need to restart

Requirements

  • Linux
  • Docker
  • Redis

Downloads

Download the binary from here

Building from source

go get github.com/alash3al/dockssh

Usage

  • Just ./dockssh
  • or ./dockssh --help to see its options

About

Dockssh, ssh into any container from anywhere with the help of redis for password storage

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%