Blogs Blogs

« Back

SSH with a Web Browser

A while back, I was using someone's computer and I wanted to SSH into my server. The machine didn't have any SSH client and I didn't have my U3 Smart Drive with me.

MindTerm is a client that implements the SSH protocols written in Java which can run as an Applet. The basic syntax for embedding the MindTerm Applet in a web page is as follows:

<APPLET CODE="com.mindbright.application.MindTerm.class"
ARCHIVE="mindterm.jar" WIDTH="400" HEIGHT="400">
<PARAM NAME="cabinets" VALUE="mindterm.cab">
<PARAM NAME="sepframe" value="true">
<PARAM NAME="debug" value="true">
</APPLET>

 

Due to the Java security model, the Applet requires to be sign, otherwise it won't run properly and throw an AccessControlException, as shown in the Java console.

MindTerm AccessControlException

For information on how to sign an Applet refer to Signing Java Applets Using RSA Certificate. After the Applet has been successfully signed a pop up will appear asking to accept the digital signature, and when accepted the Applet will have permission to run properly; this can be verify with the Java console again.

MindTerm Digital Signature

MindTerm Granted Permission

Now you can SSH from any computer that has a web browser and internet access.

MindTerm Applet

For more information refer to Running MindTerm as an Applet