Project: appceleratorstudio
Issue TISTUD-1039: OpenShift: the creation of ssh key would fail if .ssh directory doesn't exist in user's home directory
Follows the steps in https://wiki.appcelerator.org/display/tis/OpenShift+Deployment, and ~/.ssh directory doesn't exist yet, an error status would show when the domain is being created (see screenshot). The log shows the following: {code} !ENTRY com.appcelerator.titanium.deploy.openshift 4 0 2012-01-17 17:54:51.092 !MESSAGE Could not create new rsa key !STACK 0 com.openshift.express.client.OpenShiftException: Could not create new rsa key com.openshift.express.client.SSHKeyPair.create(SSHKeyPair.java:67) com.appcelerator.titanium.deploy.openshift.OpenShiftUserManager.loadSshKey(OpenShiftUserManager.java:405) com.appcelerator.titanium.deploy.openshift.OpenShiftUserManager.createDomain(OpenShiftUserManager.java:167) com.appcelerator.titanium.deploy.openshift.ui.wizard.RedHatSignupWizardPage$8.run(RedHatSignupWizardPage.java:478) org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: java.io.FileNotFoundException: /Users/mxia/.ssh/libra_id_rsa.pub (No such file or directory) java.io.FileOutputStream.open(Native Method) java.io.FileOutputStream.(FileOutputStream.java:194) java.io.FileOutputStream.(FileOutputStream.java:84) com.jcraft.jsch.KeyPair.writePublicKey(KeyPair.java:144) com.openshift.express.client.SSHKeyPair.create(SSHKeyPair.java:63)	... 4 more {code}
Story points: 8