jkelly467 / kossh Goto Github PK
View Code? Open in Web Editor NEWKotlin SSH Client library
License: MIT License
Kotlin SSH Client library
License: MIT License
I've executed ./gradlew jar without no errors; then I have executed java -jar kossh-0.0.3.jar and I have got the error in the title. Did I do something wrong? Thanks in advance.
fun main(args: Array<String>) {
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.
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 $limit." })
kossh/src/main/kotlin/kossh/impl/SSHScp.kt
Line 224 in f7d671e
Now inine function consumeMessage() returns nothing meaningful (Unit).
Need to add a line: sb.toString()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.