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: 
You can take a look at [serfish](http://www.serfish.com/console/). It's a solution to access a SSH server. But if you're hosting your web application on the same server as your ssh, there are other solutions such as [shell in a box](http://code.google.com/p/shellinabox/).
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.