FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

cbssh/sshlib at main · connectbot/cbssh · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Module sshlib

A high-level SSH client library for Kotlin and Java, built with coroutines and modern cryptography.

Getting Started

Kotlin

For Kotlin projects, use SshClient which provides a coroutine-based API.

val client = SshClient("example.com")
if (client.connect()) {
    if (client.authenticatePassword("user", "password")) {
        val session = client.openSession()
        session?.requestShell()
        // ...
        session?.close()
    }
    client.disconnect()
}

Java

For Java projects, use BlockingSshClient which provides a traditional blocking API.

BlockingSshClient client = new BlockingSshClient("example.com", 22, hostKeyVerifier);
if (client.connect()) {
    if (client.authenticatePassword("user", "password")) {
        SshSession session = client.openSession();
        // ...
        session.close();
    }
    client.disconnect();
}

Features

  • Modern cryptography (Ed25519, ChaCha20-Poly1305, etc.)
  • Post-quantum cryptography support (ML-KEM)
  • Coroutine-based async API
  • Easy to use high-level abstractions

Back | FazBrowse Home | New Git URL