Giter VIP home page Giter VIP logo

jumpserver's Introduction

SSHD Jump server for Kubernetes

What's this

Docker image

Centos:7 with openssh installed.

Kubernetes files

Start the sshd server in Kubernetes. The server can be used as jumpbox to access Kubernetes inernal network.

How to deploy in Kubernetes

TLDR;

make all
kubectl describe service sshd-jumpserver
ssh -i sshkeys/idrsa root@${LoadBalancer Ingress address}

Generate your ssh key

generate the id_rsa key or copy your own key to sshkeys folder

make newkey

Encode the ssh key with bas64 and create secrets file

make gensecret
make addsshkey

create service and deployment

make deploy

find the endpoint and ssh to the jump server

kubectl describe service sshd-jumpserver

Name:           sshd-jumpserver
Namespace:      default
Labels:         name=sshd-jumpserver
Selector:       app=sshd-jumpserver
Type:           LoadBalancer
IP:         10.0.43.1
LoadBalancer Ingress:   ac646353e0e3e11e6bd02065967720c2-558922547.us-west-1.elb.amazonaws.com
Port:           ssh 22/TCP
NodePort:       ssh 30583/TCP
Endpoints:      10.244.4.10:22
Session Affinity:   None
No events.

then you can ssh to the jump server with the private key

ssh -i sshkeys/id_rsa root@ac646353e0e3e11e6bd02065967720c2-558922547.us-west-1.elb.amazonaws.com

Warning: Permanently added the ECDSA host key for IP address '54.219.157.181' to the list of known hosts.
[root@sshd-jumpserver-oj6bv ~]#

delete service and deployment

make remove

jumpserver's People

Contributors

c4po avatar portertech avatar

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.