Code Monkey home page Code Monkey logo

kushi's Introduction

Kushi: SSH Client with auto-sync SSH port fowarding settings.

What is this?

SSH Client + autossh + sync portfowarding settings on .ssh/config

Usage

1. Create Kushi configs

% emacs ~/.config/kushi/config.yml
BindingConfigsURL: https://s3-ap-northeast-1.amazonaws.com/path_to_your_binding_list.yaml (required)
CheckInterval: 600 (seconds, optional, default = 600)
SSHConfig:
  HostName: your_ssh_server_hostname (required)
  User: your_ssh_username (required)
  IdentityFile: path_to_your_ssh_identity_key_file (optional, default = $HOME/.ssh/id_ed25519, $HOME/.ssh/id_rsa)
  Port: your_ssh_server_port (optional, default = 22)
  KeepaliveInterval: 3 (seconds, optional, default = 3)
  Timeout: 5 (seconds, optional, default = 5)

2. Place the portfowarfing bindings list file on your managed server (like S3)

https://s3-ap-northeast-1.amazonaws.com/path_to_your_binding_list.yaml
# WEB
- src: localhost:18080
  dst: your_awesome_server_host:8080

# DB
- src: localhost:13306
  dst: your_awesome_mysql_server_host:3306

or local file

% emacs ~/.config/kushi/config.yml
BindingConfigsURL: file:///path/to/your_binding_list.yaml (edit)

3. Run kushi

% kushi --stdout

4. (Optional) Run as daemon

% nohup /Users/cnosuke/dev/bin/kushi 1>/dev/null 2>&1 &

All logs are written to ~/.config/kushi/logs/20180128172917.log . (Filename is a timestamp of process started time.)

LICENSE

MIT license

Copyright (C) 2018 Shinnosuke Takeda a.k.a @cnosuke

kushi's People

Contributors

cnosuke avatar jumping avatar m-nakamura145 avatar myouju avatar ohsuka avatar

Watchers

 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.