• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem while connecting to UNIX server from Java

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please post the precise exception.
 
reply
    Bookmark Topic Watch Topic
  • New Topic