6

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

2 Answers 2

5

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

Sign up to request clarification or add additional context in comments.

1 Comment

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.