Skip to content
Shikhar Bhushan edited this page Jul 2, 2014 · 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.50</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-jdk15on</artifactId>
                <version>1.50</version>
            </dependency>

jzlib if you intend to use zlib compression.

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