From e1dd5d651706f5e13e9952f153e61d254637e966 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 16 May 2017 18:08:15 +0200 Subject: [PATCH] shellinabox_key --- shellinabox_sshwrapper.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shellinabox_sshwrapper.sh b/shellinabox_sshwrapper.sh index 876ab34..d22fc9e 100755 --- a/shellinabox_sshwrapper.sh +++ b/shellinabox_sshwrapper.sh @@ -14,8 +14,9 @@ if [ "$puplic" == "y" ]; echo $key > ~/.ssh/id_rsa.pub; rm ~/.ssh/id_rsa; - echo "Enter your private id here and press the enter key for a new line and when you are done confirm with finish !!!"; - while [ "$id" != "finish" ]; + echo "Enter your private id here and press the enter key for a new line !!!"; + id=null + while [ "$id" != "" ]; do read -p "How is your id_rsa key?: " id; echo $id >> ~/.ssh/id_rsa;