• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem while connecting to UNIX server from Java  RSS feed

 
Tusshar Fasate
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am developing one application for my organisation.In that I have to connect to unix server through java and need to run unix command and get output of that command on java end.In test environment I am succesfully able to connect to Unix server and
able to get the output.But when we put it in production environment Unix server is not allowing to connect it though Java.
I tried though telnet,FTP,Jsch(Jcraft).
Its giving exception like authentication failed even we are providing correct password.
Can anybody tell me the cause of this and solution on this problem?

 
Tim Holloway
Saloon Keeper
Posts: 18800
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably one off 2 things:

1. The user account/password isn't defined for the machine you're attempting to connect to.

2. The firewall on that machine isn't open for the service you're attempting to use. Linux common distros aren't quite as trusting as Windows. By default they like to block functions unless explicitly told otherwise.
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the precise exception.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!