I need help in writing java code that can connect to a remote UNIX box, and run a script on that box.
I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished.
Where is the best place to start reading about this ? What all should I know ?
Any help is appreciated. Thanks.
sshis probably the best protocol to use for that sort of thing. It’s more secure thantelnetand can be set to up to use authentication keys so your code won’t need to know (or ask the user) for the password to the remote box.Java Secure Channel (JSch) is a popular pure Java implementation of the ssh protocol.