Using SSh tunneling at RMI - http://blogs.sun.com/roller/page/lmalventosa?entry=using_the_ssl_tls_based1 Use sshd as proxy - http://rudygems.com/post/569787317/ssh-d-is-your-friend http://www.thegeekstuff.com/2011/05/openssh-options putting ssh password in command line - http://www.lainoox.com/ssh-password-command-line/ how-to-disable-ssh-host-key-checking - http://linuxcommando.blogspot.com.au/2008/10/how-to-disable-ssh-host-key-checking.html Having batch with ssh for interactive command - http://linuxcommando.blogspot.com.au/2013/04/one-liner-to-shutdown-remote-host.html Cat output to a new file in single line - http://linuxcommando.blogspot.com.au/2013/04/one-liner-to-copy-text-to-remote-host.html