0

I need to have a web application in java(preferably) to login to a particular unix server say (xxx.pr.s.com) using username and password.and to read a particular file in that server . Isa there any java library to achieve the same.

Thanks.

jeyaprakash
  • 179
  • 2
  • 11
  • @jeyaprakash See this [sample program](http://stackoverflow.com/a/15332487/1516759) in this thread. – Visruth Jul 13 '15 at 14:47

1 Answers1

3

I think Java Secure Channel (JSCH) is what you're looking for. It will allow you to ssh into the OS http://www.jcraft.com/jsch/

David
  • 19,577
  • 28
  • 108
  • 128
  • SSH has a number of different ways the file could be transferred. The OP only wanted to "read" the file, he can do this with SSH then send a command to echo the contents of the file over ssh. I admit this is a dirty solution but there isn't enough information to make any further assumptions. – David Aug 23 '12 at 10:41