Coder Social home page Coder Social logo

ssh-to-k8s's Introduction

A simple ssh proxy server, from ssh client to k8s container. it is not production ready and not have the full features, hope inspire you do more things.

Description

The workflow like below, it start a ssh server for ssh connection and forward it to k8s.

workflow

QuickStart

  1. install
go get github.com/htlhenry/ssh-to-k8s

or

git clone github.com/htlhenry/ssh-to-k8s $GOPATH/src/github.com/htlhenry/ssh-to-k8s/
  1. build
cd $GOPATH/src/github.com/htlhenry
go build -o ssh-to-k8s main.go
  1. run
./ssh-to-k8s -h   # show help message

SSH to k8s proxy

Usage:
  ssh-to-k8s [flags]

Flags:
  -h, --help                    help for ssh-to-k8s
  -c, --kubeConfigPath string   k8s config file (default: ~/.kube/config)
  -p, --port string             listen port (default "2222")
  1. use it
# Note: there not auth user implement
ssh -o "UserKnownHostsFile /dev/null" 127.0.0.1 -p 2222

# flow the help message, enter:
# <namespace> <pod> <container> 
# login to k8s

Acknowledgments

inspired by Dashboard and koko

ssh-to-k8s's People

Contributors

htlhenry avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

agrogov

ssh-to-k8s's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.