Skip to content
On this page
var dumb = require('@ashnazg/dumbfile/json.js');
var kemp = require('@ashnazg/inspector-kemp');

(async function() {
	kemp.setPossibleAccounts(['ubuntu', 'ec2_user']); // this list is only used to probe for servers being registered.
	var state = await dumb.load('./state.json');
	kemp.setState(state); // if you don't setState, it'll use an in-memory only list. Good for QA'ing, annoying for dev/prod.
	var record = await kemp.register('');

canSsh(host, name)

var bool_result = await kemp.canSsh('', 'xander');


JavaScript/Bash source released under the MIT License.