We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b0e094 commit 5effc18Copy full SHA for 5effc18
1 file changed
secureadmin.sh
@@ -363,15 +363,15 @@ user_key_menu() {
363
364
if user_exists "$ssh_user"; then
365
run_command mkdir -p "$ssh_dir"
366
- run_command ssh-keygen -t rsa -b 4096 -f "$ssh_dir/id_rsa"
+ run_command ssh-keygen -t ed25519 -C "$ssh_user"
367
run_command mv "$ssh_dir/id_rsa.pub" "$ssh_dir/authorized_keys"
368
clear
369
displayuser
370
echo
371
echo " Private key of > "$ssh_user" <"
372
echo "=========================================================================="
373
374
- run_command cat "$ssh_dir/id_rsa"
+ run_command cat "$ssh_dir/ed25519"
375
376
377
read -p "Press Enter to return to the menu."
0 commit comments