Skip to content

Commit c98d373

Browse files
authored
Update secureadmin.sh
1 parent d3bafef commit c98d373

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

secureadmin.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,14 +364,14 @@ user_key_menu() {
364364
if user_exists "$ssh_user"; then
365365
run_command mkdir -p "$ssh_dir"
366366
run_command ssh-keygen -t ed25519 -C "$ssh_user"
367-
run_command mv "$ssh_dir/id_rsa.pub" "$ssh_dir/authorized_keys"
367+
run_command mv "$ssh_dir/id_ed25519.pub" "$ssh_dir/authorized_keys"
368368
clear
369369
displayuser
370370
echo
371371
echo " Private key of > "$ssh_user" <"
372372
echo "=========================================================================="
373373
echo
374-
run_command cat "$ssh_dir/ed25519"
374+
run_command cat "$ssh_dir/id_ed25519"
375375
echo
376376
echo
377377
read -p "Press Enter to return to the menu."

0 commit comments

Comments
 (0)