modified tty.js to work as an ssh proxy. username,hostname, and a key are passed in through GET parameters and if the key matches the one in the config file then a ssh session is started.
This means that there are now 2 new emits that the tty is listening for: one for authentication and one for passing the shell args to the session. If the authentication passes then a shell is automatically opened and full-screened.
note that you must set a "key":"somekey" in the config as well as set the shell as ssh for this to work as intended.