From 4c01e298a0c186ffddaa0be1bfe42c9b0c7c767c Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 8 May 2014 17:06:11 +1000 Subject: [PATCH] default is wrong here, we really need an ssh key, its critical --- launcher | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/launcher b/launcher index 116d1ed..b941c16 100755 --- 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 -- 2.25.1