Skip to content

ChengTiesheng/ssh-gateway-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ssh-gateway-docker

Runs a SSH server that exposes a docker shell (i.e. a shell that can be used to run only docker commands)

> go run main.go 3333
2014/10/15 03:54:53 [INFO] listening to "0.0.0.0:3333"
2014/10/15 03:54:54 [INFO] got request "pty-req"
2014/10/15 03:54:54 [INFO] got request "env"
2014/10/15 03:54:54 [INFO] got request "env"
2014/10/15 03:54:54 [INFO] got request "env"
2014/10/15 03:54:54 [INFO] got request "shell"

> ssh -p 3333 0.0.0.0
docker > run -it busybox
/ # whoami
root
/ #

About

ssh server that exposes a docker cmd shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%