Skip to content
Bert Geens edited this page Sep 18, 2013 · 17 revisions

Maven

sshj artifact

Releases

sshj releases are present in the central maven repository: http://mvnrepository.com/artifact/net.schmizz/sshj/

Snapshots

You will need to add the sonatype remote repository if you don't have it:

<repositories>
    <repository>
        <id>sonatype</id>
        <url>http://oss.sonatype.org/content/groups/public/</url>
    </repository>
</repositories>

See https://oss.sonatype.org/content/repositories/snapshots/net/schmizz/sshj for available snapshot versions.

additional dependencies

Required

slf4j is a logging facade that sshj depends on. You need to add a slf4j binding and the implementation for that binding. If you don't have strong preferences for some logging framework, try logback which natively implements the slf4j API.

Optional

Throw in BouncyCastle to get better crypto.

<dependency>
    <groupId>org.bouncycastle</groupId>
    <artifactId>bcprov-jdk15on</artifactId>
    <version>1.49</version>
</dependency>

jzlib if you intend to use zlib compression.

<dependency>
    <groupId>com.jcraft</groupId>
    <artifactId>jzlib</artifactId>
    <version>1.1.2</version>
</dependency>
Clone this wiki locally