Connecting to remote unix server using java?

I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks.

i) "connect": SSH, SQL, ...
ii) SSH: Why don't you use bash? ssh me@somehwere remote_command