To test this:
- Run
npm installoryarn install - Run
node index.js && ssh -p 2222 cf:$(cf app app-name --guid)/[email protected], whereapp-nameis your app name andssh.system.domain.comis 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.