Free Online Books and PDFs for Web Designers
Powered by MaxBlogPress  

Java Program to run shell commands on SSH enabled System

Earlier I wrote a program to connect to remote database on SSH server. Today I am presenting a program that can be used to connect to SSH enabled server and execute shell commands. I am using JSch to connect to remote ssh server from java program. . . . → Read More: Java Program to run shell commands on SSH enabled System

Java Program to Connect to Remote database through SSH using Port Forwarding

Recently in one of my project I had to connect to a remote database that was setup on SSH enabled server. Since it was on SSH enabled server, we can’t connect it directly using JDBC connection API. To achieve this, we first need to create SSH session and then using Port Forwarding we can forward the request to server and connect to database. I achieved this using JSch Port Forwarding and then connecting to database. . . . → Read More: Java Program to Connect to Remote database through SSH using Port Forwarding