Damien
Damien

Reputation: 4121

Connecting to remote server using java and ssh key

Does anyone have any code for connecting to a remote server using java and an ssh key. We dont have a password for this server, we just use our username and our ssh keys

Upvotes: 6

Views: 9038

Answers (2)

manikanta
manikanta

Reputation: 8500

SSHJ have very easy & clean API for uploading files and for executing commands on remote systems.

Upvotes: 1

skaffman
skaffman

Reputation: 403461

jsch is a pure java SSH implementation that supports SSH key auth.

Upvotes: 5

Related Questions