default is wrong here, we really need an ssh key, its critical
authorSam <sam.saffron@gmail.com>
Thu, 8 May 2014 07:06:11 +0000 (17:06 +1000)
committerSam <sam.saffron@gmail.com>
Thu, 8 May 2014 07:06:11 +0000 (17:06 +1000)
launcher

index 116d1edf0acba9b9ae46d794a4a4405b71434493..b941c16a6eb94f9e3c988ff572b094d9ebdf7627 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -117,14 +117,15 @@ get_ssh_pub_key() {
     if [[ ! -e ~/.ssh/id_rsa.pub && ! -e ~/.ssh/id_dsa.pub ]] ; then
       echo You have no SSH key associated to this profile
       echo "(This will allow you ssh access into your container)"
-      read -p "Generate SSH key at ~/.ssh/id_rsa.pub? (y/N) " -n 1 -r
-      if [[ $REPLY =~ ^[Yy]$ ]] ; then
+      read -p "Generate SSH key at ~/.ssh/id_rsa.pub? (Y/n) " -n 1 -r
+      if [[ $REPLY =~ ^[Nn]$ ]] ; then
+        echo
+        echo WARNING: You may not be able to log in to your container.
         echo
-        echo Generating SSH key
-        mkdir -p ~/.ssh && ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
       else
         echo
-        echo WARNING: You may not be able to log in to your container.
+        echo Generating SSH key
+        mkdir -p ~/.ssh && ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
         echo
       fi
     fi