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
jsch is a pure Java SSH implementation that supports the SSH key.
SSHJ have a very simple and clean API for downloading files and for executing commands on remote systems.