shellinabox_key
This commit is contained in:
parent
40322f4f2a
commit
e1dd5d6517
1 changed files with 3 additions and 2 deletions
|
@ -14,8 +14,9 @@ if [ "$puplic" == "y" ];
|
||||||
echo $key > ~/.ssh/id_rsa.pub;
|
echo $key > ~/.ssh/id_rsa.pub;
|
||||||
|
|
||||||
rm ~/.ssh/id_rsa;
|
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 !!!";
|
echo "Enter your private id here and press the enter key for a new line !!!";
|
||||||
while [ "$id" != "finish" ];
|
id=null
|
||||||
|
while [ "$id" != "" ];
|
||||||
do
|
do
|
||||||
read -p "How is your id_rsa key?: " id;
|
read -p "How is your id_rsa key?: " id;
|
||||||
echo $id >> ~/.ssh/id_rsa;
|
echo $id >> ~/.ssh/id_rsa;
|
||||||
|
|
Loading…
Reference in a new issue