Configuring unix machines via web using Java and/or Perl

I am working on a website designed to remotely connect to different unix boxes (ssh) and perform different command line tasks.

What does Java give us regarding connecting, processing command line args, etc.  Does Java offer anything similar to Expect scripting?

What is the best way (preferably Java, but we can do Perl too) to:

1) Get user login credentials via web and remotely connect (ssh) to the boxes.
2) Process CLI commands from Java app (servlet)

Who is Participating?
mr_egyptianConnect With a Mentor Commented:
I'm a bit confused as to what you're looking to accomplish.  It almost sounds like ssh through a website?  If so, there are plenty of ssh applets out there.

I presume you're aware of Webmin.  It's a fairly robust browser based remote administration tool:

krussell222Author Commented:
Basically that is pretty much it.  

I need a way to do identical configuration of apps over a series of boxes (dozens) without the need to log into each box and run the config (which is run via a series of CLI commands).  The closest example would probably be adding an identical firewall rule to 10 different firewalls running on 10 different boxes.  I'll check out webmin and see if it offers what I'm looking for.
krussell222Author Commented:
I guess I should add... this needs to happen without user interaction.  Basically I'll upload a file with the CLI commands and submit it.  Then I want my web app to login in to each server and run the commands.
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

This sounds like it could be done with perl
If you want a web-based interface, you can use the CGI module.
To SSH to a bunch of machines, you can use the Net::SSH module.
krussell222Author Commented:
Yeah.. I am leaning toward Perl.  However, I don't think I'll be able to use Net::SSH since it requires using DSA/RSA keys and that isn't an option on these boxes.
Adam314Connect With a Mentor Commented:
One of the other Net::SSH::* modules might work.
Forced accept.

EE Admin
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.