This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes logging into linux machine through java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "logging into linux machine through java" Watch "logging into linux machine through java" New topic

logging into linux machine through java

dhanunjaya kumar

Joined: Sep 22, 2006
Posts: 16
is it possible to login into a linux machine from java program,and i want execute linux commands from my java program.
i don't know wether this is the right place to post this question.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42024
The Jakarta Commons Net library implements both Telnet and rexec/rcmd/rlogin, both of which allow you to log into a remote machine and issue commands on it. If you want something more secure, have a look at SSH, for which Java libraries are available as well.

Ping & DNS - my free Android networking tools app
GeeCON Prague 2014
subject: logging into linux machine through java