Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Web Based SSH Access your OpenShift Applications

DZone's Guide to

Web Based SSH Access your OpenShift Applications

· Integration Zone
Free Resource

Share, secure, distribute, control, and monetize your APIs with the platform built with performance, time-to-value, and growth in mind. Free 90 day trial 3Scale by Red Hat

I recently came across KeyBox. This is a Apache licensed SSH console for applications in an OpenShift Domain. The cool thing is, that it is completely web-based. And by far cooler: The client is completely written in JavaScript (using term.js) connecting to JSch (Java implementation of SSH2) running as a web-application on the JBoss Enterprise Web Server (EWS 2.0).
This is a quick and easy way to get hand on your machine, if you can't use a native ssh client. And it is a great tool in your xPaaS developer toolbox.

Prerequisites
There's not a hell lot to get started: But you obviously need a free OpenShift account first. After that, install the OpenShift client tools (aka rhc). They require Ruby 1.8.7 or higher. If you want to get the most out of it, make sure to install Git for your system, too.

Installing
Installing is just a one-liner in the terminal:

rhc app create keybox jbossews-2.0 --from-code git://github.com/skavanagh/KeyBox-OpenShift.git

It might take a while, but after the command finished, you can access KeyBox via:

https://keybox-<namespace>.rhcloud.com

All members of the domain can login with their OpenShift account.

Now you can open a SSH session for every application in your domain. KeyBox generates an SSH key pair and associate the public key with the user account for every login.

Make sure to follow Sean Kavanagh on Twitter ( @spkavanagh6) and star the KeyBox-OpenShift repository if you like it!

Discover how you can achielve enterpriese agility with microservices and API management

Topics:

Published at DZone with permission of Markus Eisele, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}