• Post Reply Bookmark Topic Watch Topic
  • New Topic

SSH Interactive sessions  RSS feed

 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

How you doing. I have requirement to have interactive ssh session to read/write data from Linux terminal.

in Below screen 1 which displayed in linux i have to enter username and password and validate if it is successful and in Screen 2 i have to read se/BU value. Just like in web page how we validate i have to do same thing which displayed in terminal mode.

is there any Java api that helps these kind of requirements.



 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked out JSch? Whenever I hear SSH and Java in one sentence, it's the first thing I think of.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just as an FYI, for non-interactive SSH https://code.google.com/p/sshxcute/ is an interesting alternative. Well, more like syntactic sugar, as it uses JSch underneath. But the API is easier to deal with, IMO.
 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf and Rob thanks for your response.

Yes currently i am using sshcute it uses Jsch underneath but it is non interactive.

Is there any other APIs we have for interactive ssh. Is there any existing systems in the programming world does this and i can integrate with java.
 
Sireesh Ganagam
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any inputs appreciated please .. i see HP load runner RTE protocol does interactive SSH sessions ... in this open sources world do we have any programs for interactive ssh in java
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!