added an ssh command improvement and updated the jjava method as well