Skip to content
shikhar edited this page Aug 14, 2010 · 13 revisions

Maven

Changelog

Frequently Asked Questions

  • Toning down the logging

    sshj uses sl4j, which is just a facade, so it depends on how the underlying logging implementation you are using is configured. For example, in case of log4j this is typically accomplished with a log4j.properties in the classpath. Filter out/down messages from the net.schmizz category.

    In versions less than 0.3.0 there is an embarrassing bug that some logger categories are misconfigured. So filtering will not work correctly.

  • Android support

    Android is not supported because sshj uses elements of the Java 6 library, which is not fully supported in the Android SDK. So when that happens, sshj will work on Android.

  • I/O with Channels

	// on any Channel, including Session.Command, Session.Shell and Session.Subsystem
	getOutputStream() // -> java.io.OutputStream; corresponds to stdin
	getInputStream() // -> java.io.InputStream; corresponds to stdout

	// only on Session.Command and Session.Shell
	getErrorStream() // -> java.io.InputStream; corresponds to stderr

	// only on Session.Command
	getOutputAsString() // -> java.lang.String; blocks until it reads all data from stdout
  • Concurrency

    Multiplexing channels over a single connection is supported.

Clone this wiki locally