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.

1
  • @jeyaprakash See this sample program in this thread. Commented Jul 13, 2015 at 14:47

1 Answer 1

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/

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.