KxSsh

Java SSH client (wrapper for jsch)

License

License

Categories

Categories

Net
GroupId

GroupId

net.kemitix
ArtifactId

ArtifactId

kxssh
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

KxSsh
Java SSH client (wrapper for jsch)
Project URL

Project URL

https://github.com/kemitix/kxssh
Project Organization

Project Organization

Kemitix
Source Code Management

Source Code Management

https://github.com/kemitix/kxssh

Download kxssh

How to add to project

<!-- https://jarcasting.com/artifacts/net.kemitix/kxssh/ -->
<dependency>
    <groupId>net.kemitix</groupId>
    <artifactId>kxssh</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/net.kemitix/kxssh/
implementation 'net.kemitix:kxssh:0.2.2'
// https://jarcasting.com/artifacts/net.kemitix/kxssh/
implementation ("net.kemitix:kxssh:0.2.2")
'net.kemitix:kxssh:jar:0.2.2'
<dependency org="net.kemitix" name="kxssh" rev="0.2.2">
  <artifact name="kxssh" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.kemitix', module='kxssh', version='0.2.2')
)
libraryDependencies += "net.kemitix" % "kxssh" % "0.2.2"
[net.kemitix/kxssh "0.2.2"]

Dependencies

compile (2)

Group / Artifact Type Version
com.jcraft : jsch jar 0.1.53
org.projectlombok : lombok jar 1.16.4

test (4)

Group / Artifact Type Version
org.mockito : mockito-core jar 1.10.19
junit : junit jar 4.12
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3

Project Modules

There are no modules declared in this project.

kxssh

Java SSH client (wrapper for jsch)

master: Build Status develop: Build Status

Usage

Password Authenticated Client

SftpClient client
        = KxSsh.getSftpClient(hostname, username, password);

Private Key Authenticated Client

String privatekey = "~/.ssh/id_rsa";
SftpClient client
        = KxSsh.getSftpClient(hostname, username, privatekey, passphrase);

Download a file

Download a file from a remote host and save it locally:

client.download(remoteFilename, new File(localFile));

Upload a file

Upload a local file to a remote host:

client.upload(new File(localFile), remoteFilename);

TODO

  • Better readme and javadoc

Versions

Version
0.2.2
0.2.1
0.2.0-RELEASE
0.1.1-RELEASE