To test this:
- Run
npm install
oryarn install
- Run
node index.js && ssh -p 2222 cf:$(cf app app-name --guid)/[email protected]
, whereapp-name
is your app name andssh.system.domain.com
is the DNS name of your SSH end point. - When prompted for a password, enter the code listed after
Access Code is
.
You should now be SSH'd into the given application & instance id.
NOTE: better error handling should be done, but has been omitted to keep this example brief.