1 Replies - 970 Views - Last Post: 26 November 2014 - 04:30 PM Rate Topic: -----

#1 peterparkers   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-November 14

Connect to an SSH server in Java?

Posted 26 November 2014 - 10:14 AM

How can I connect to an SSH server in Java? I don't need/want a shell. I just want to connect to the SSH server and get the content of, say, file.txt. How can I do that?
Exemple i get host, user,pass in txt and connect it with java code!
Is This A Good Question/Topic? 0
  • +

Replies To: Connect to an SSH server in Java?

#2 g00se   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3744
  • View blog
  • Posts: 17,121
  • Joined: 20-September 08

Re: Connect to an SSH server in Java?

Posted 26 November 2014 - 04:30 PM

You need to use a special API such as http://www.jcraft.com/jsch/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1