Question: I know there is an implementation of VNC using WebSockets (http://novnc.com) but that still requires a server. I am looking to create a simple client-side JavaScript only (no Flash) connection to a port running SSH. I am guessing WebSockets is the only way to go since it does TCP. Any example code? Any other way?

Answer: 
For those still searching, **[paramikojs](http://www.mozdev.org/source/browse/fireftp/src/content/js/connection/paramikojs/)** could be the answer.

I'm currently having a similar issue:I need a SSH JS client-side implementation, and I need it to be BSD licensed. Alas paramikojs seems to be GPL licensed.
It's definitely possible using a Linux emulator with full network support like the great OpenRISC emulator [jor1k](https://s-macke.github.io/jor1k/demos/main.html).

Note that I've created [browser-tools.net](https://browser-tools.net), a collection of in-browser tools from number of different projects.