kossh
kossh copied to clipboard
Kotlin SSH Client library
https://github.com/jkelly467/kossh/blob/f7d671e241931d73711328588a00382dc12fcdd8/src/main/kotlin/kossh/impl/SSHScp.kt#L93 Kotlin version: 1.4.10 Argument limit=-1 goes to underlying kotlin.text.Regex.split(input: CharSequence, limit: Int = 0) which doesn't accept negative values: require(limit >= 0, { "Limit must be non-negative, but was...
https://github.com/jkelly467/kossh/blob/f7d671e241931d73711328588a00382dc12fcdd8/src/main/kotlin/kossh/impl/SSHScp.kt#L224 Now inine function consumeMessage() returns nothing meaningful (Unit). Need to add a line: sb.toString()
```kotlin fun main(args: Array) { val settings = SSHOptions(host = "192.168.1.2", username = "root", port = 22, compress = 9) val session = SSH(settings) val shell = session.newPowerShell() println(shell.ls()) println(shell.pwd())...
Can provide a maven package,Thank you very much, I am currently ready to use your project to do some ssh interesting things.