Reputation: 11317
Can someone give me some example code? I've tried to look for the documentation but it looks confusing..
Or maybe I could use a different library to conenct to SSH in Java?
Upvotes: 1
Views: 1098
Reputation: 310884
JTA only connects to SSH-1. If you are talking about SSH-2 you need something else, or you need my JTA SSH2Socket class ;-)
Upvotes: 2
Reputation: 570325
Personally, I've always used JSch (a pure Java implementation of SSH2). The examples illustrate most use cases.
Upvotes: 2