Giter Site home page Giter Site logo

port-forwarder's Introduction

port-forwarder

まとめて複数のものをsshでポートフォワードするためのネイティブツール。 GraalVM対応で、Javaの実行環境がなくても動作する。

Usage

option

--config="config.yml"
    YAMLファイルを指定する

--port="8080"
    WebGUIのポートを指定する。
    ほぼ未実装。
    指定が無ければ起動しない。

--debug
    詳細なスタックトレースを出力する

config

destinationkeyの指定にはcommandtextが使用できる。 forwardはkeyにローカルの情報、valueにリモートホストとポートを指定する。

destination:
  command: |
    echo "[email protected]"

key:
  text: ~/.ssh/key

forward:
  localhost:10002: example1.internal:8080
  172.17.0.1:10003: example2.internal:8080

port-forwarder's People

Contributors

matsudamper avatar

Watchers

 avatar

port-forwarder's Issues

GraalVMのネイティブビルドでsshdが動作しない

Exception in thread "main" java.lang.IllegalArgumentException: KeyExchangeFactories not set
        at org.apache.sshd.common.util.ValidateUtils.createFormattedException(ValidateUtils.java:213)
        at org.apache.sshd.common.util.ValidateUtils.throwIllegalArgumentException(ValidateUtils.java:179)
        at org.apache.sshd.common.util.ValidateUtils.checkTrue(ValidateUtils.java:174)
        at org.apache.sshd.common.util.ValidateUtils.checkNotNullAndNotEmpty(ValidateUtils.java:80)
        at org.apache.sshd.common.helpers.AbstractFactoryManager.checkConfig(AbstractFactoryManager.java:513)
        at org.apache.sshd.client.SshClient.checkConfig(SshClient.java:396)
        at org.apache.sshd.client.SshClient.start(SshClient.java:455)
        at net.matsudamper.portfoward.Forward.<init>(Forward.kt:29)
        at net.matsudamper.portfoward.MainKt.createForward(Main.kt:166)
        at net.matsudamper.portfoward.MainKt.access$createForward(Main.kt:1)
        at net.matsudamper.portfoward.MainKt$main$2$1.invokeSuspend(Main.kt:38)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
        at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
        at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
        at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
        at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
        at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
        at net.matsudamper.portfoward.MainKt.main(Main.kt:36)
        at net.matsudamper.portfoward.MainKt$main$3.invoke(Main.kt)
        at net.matsudamper.portfoward.MainKt$main$3.invoke(Main.kt)
        at kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1.invokeSuspend(IntrinsicsJvm.kt:205)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlin.coroutines.ContinuationKt.startCoroutine(Continuation.kt:115)
        at kotlin.coroutines.jvm.internal.RunSuspendKt.runSuspend(RunSuspend.kt:19)
        at net.matsudamper.portfoward.MainKt.main(Main.kt)
        Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@ab89e81, BlockingEventLoop@78c2ef68]

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.