Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to remote server using java and ssh key

Tags:

java

ssh

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

like image 751
Damien Avatar asked Sep 11 '09 13:09

Damien


2 Answers

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

like image 143
skaffman Avatar answered Oct 01 '22 10:10

skaffman


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

like image 43
manikanta Avatar answered Oct 01 '22 10:10

manikanta