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/).
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.