Top "Jsch" questions

JSch is a pure Java implementation of SSH2.

com.jcraft.jsch.JSchException: UnknownHostKey

I'm trying to use Jsch to establish an SSH connection in Java. My code produces the following exception: com.jcraft.…

java ssh jsch
"com.jcraft.jsch.JSchException: Auth fail" with working passwords

While trying to upload the file to our server, i am getting the following exception com.jcraft.jsch.JSchException: Auth …

java jsch
Run a command over SSH with JSch

I'm trying to run a command over SSH with JSch, but JSch has virtually no documentation and the examples I've …

java ssh jsch
SFTP file transfer using Java JSch

Here is my code, which retrieves content of the file, on the remote server and display as output. package sshexample; …

java ssh sftp file-transfer jsch
JSchException: Algorithm negotiation fail

I am trying to connect to remote sftp server over ssh with JSch (0.1.44-1) but during "session.connect();" I am …

java encryption ssh sftp jsch
How do I run SSH commands on remote system using Java?

I am new to this kind of Java application and looking for some sample code on how to connect to …

java command-line ssh jsch
Can we use JSch for SSH key-based communication?

I am using JSch for sftp communication, now i want to use facilitate the key-based authentication, key is loaded on …

java ssh jsch
Sending commands to server via JSch shell channel

I can't figure it out how I can send commands via JSch shell channel. I do this, but it doesn't …

java ssh jsch
com.jcraft.jsch.JSchException: Auth cancel

I'm trying to write an Ant script to retrieve an URL via port tunnelling. It works great when I use …

ant ssh jsch
Connect to remote MySQL database through SSH using Java

How can I connect to remote MySQL database through SSH from java application? Small code example is helpful for me …

java mysql ssh mysql-connector jsch