This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design 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