Вы находитесь на странице: 1из 4

Home shikhar/sshj Wiki GitHub

https://github.com/shikhar/sshj/wiki

Signup and Pricing Explore GitHub Features Blog Login

shikhar / sshj
Watch Fork 145 22 Code Network Pull Requests 1 Issues 13 Wiki 4 Stats & Graphs Home Pages Wiki History Git Access

Home
Page History Maven Changelog

Frequently Asked Questions


Multiple sessions objects are not reusable, so you can only have one command/shell/subsystem via exec(), startShell() or startSubsystem() respectively. But you can start multiple sessions over a single connection.
Session

Toning down the logging

1 di 4

12/03/2012 09:17

Home shikhar/sshj Wiki GitHub

https://github.com/shikhar/sshj/wiki

sshj uses slf4j, 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. Android support sshj works on Android 2.3+, with a slightly different Config. 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. Last edited by ansell, 6 months ago GitHub Links GitHub About Blog Features Contact & Support Training GitHub Enterprise Site Status Tools Gauges: Analyze web traffic Speaker Deck: Presentations Gist: Code snippets GitHub for Mac Issues for iPhone Job Board Extras

2 di 4

12/03/2012 09:17

Home shikhar/sshj Wiki GitHub

https://github.com/shikhar/sshj/wiki

GitHub Shop The Octodex Documentation GitHub Help Developer API GitHub Flavored Markdown GitHub Pages Terms of Service Privacy Security 2012 GitHub Inc. All rights reserved. Powered by the Dedicated Servers and Cloud Computing of Rackspace Hosting

Markdown Cheat Sheet


Format Text
Headers
# This is an <h1> tag ## This is an <h2> tag ###### This is an <h6> tag

Text styles
*This text will be italic* _This will also be italic_ **This text will be bold** __This will also be bold__ *You **can** combine them*

Lists
Unordered
* Item 1 * Item 2 * Item 2a * Item 2b

Ordered
1. Item 1 2. Item 2

3 di 4

12/03/2012 09:17

Home shikhar/sshj Wiki GitHub


3. Item 3 * Item 3a * Item 3b

https://github.com/shikhar/sshj/wiki

Miscellaneous
Images
![GitHub Logo](/images/logo.png) Format: ![Alt Text](url)

Links
http://github.com - automatic! [GitHub](http://github.com)

Blockquotes
As Kanye West said: > We're living the future so > the present is our past.

Code Examples in Markdown


Syntax highlighting with GFM
```javascript function fancyAlert(arg) { if(arg) { $.facebox({div:'#foo'}) } } ```

Or, indent your code 4 spaces


Here is a Python code example without syntax highlighting: def foo: if not bar: return true

Inline code for comments


I think you should use an `<addr>` element here instead.

Something went wrong with that request. Please try again. Dismiss

4 di 4

12/03/2012 09:17

Вам также может понравиться