Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running a shell script in java

 
wilfredo doming
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please help me establishing a interactive ssh session. I want to execute a passwd command on a remote machine. But, once i execute the passwd command, the shell expects for a passowrd. How do i provide this password???
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2SSh is one such library that will help you create and work on an ssh session from java.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic