Connecting to a remote server using java and ssh key

Does anyone have some code to connect to a remote server using java and ssh key. We do not have a password for this server, we just use our username and our ssh keys

+4
source share
2 answers

jsch is a pure Java SSH implementation that supports the SSH key.

+5
source

SSHJ have a very simple and clean API for downloading files and for executing commands on remote systems.

+1
source

All Articles