aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "logging into linux machine through java" Watch "logging into linux machine through java" New topic
Author

logging into linux machine through java

dhanunjaya kumar
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 42278
    
  64
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: logging into linux machine through java