setup-kapelu 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/script/setup.sh +13 -5
package/package.json
CHANGED
package/script/setup.sh
CHANGED
|
@@ -393,20 +393,28 @@ install_apt "${APT_DEV_TOOLS[@]}"
|
|
|
393
393
|
########################################
|
|
394
394
|
|
|
395
395
|
setup_ssh() {
|
|
396
|
-
|
|
396
|
+
clear
|
|
397
397
|
if [[ -f "$HOME/.ssh/id_ed25519" ]]; then
|
|
398
398
|
echo "✔ SSH ya configurado"
|
|
399
399
|
return
|
|
400
400
|
fi
|
|
401
|
-
|
|
401
|
+
echo -e ' ${COLOR[green]}*********************************************${COLOR[reset]}'
|
|
402
|
+
echo -e ' ${COLOR[green]}* *${COLOR[reset]}'
|
|
403
|
+
echo -e ' ${COLOR[green]}* ${COLOR[yelow]}Crear Clave SSH${COLOR[reset]} *${COLOR[reset]}'
|
|
404
|
+
echo -e ' ${COLOR[green]}* *${COLOR[reset]}'
|
|
405
|
+
echo -e ' ${COLOR[green]}*********************************************${COLOR[reset]}'
|
|
406
|
+
read -rp "Nombre de la clave SSH: " KEY_NAME
|
|
402
407
|
read -rp "Email SSH: " EMAIL
|
|
403
408
|
|
|
404
|
-
|
|
409
|
+
KEY_PATH="$HOME/.ssh/$KEY_NAME"
|
|
410
|
+
|
|
411
|
+
ssh-keygen -t ed25519 -C "$EMAIL" -f "$KEY_PATH" -N ""
|
|
405
412
|
|
|
413
|
+
ls -al ~/.ssh
|
|
406
414
|
eval "$(ssh-agent -s)"
|
|
407
|
-
ssh-add "$
|
|
415
|
+
ssh-add "$KEY_PATH"
|
|
408
416
|
|
|
409
|
-
cat "$
|
|
417
|
+
cat "$KEY_PATH.pub"
|
|
410
418
|
|
|
411
419
|
}
|
|
412
420
|
|