Skip to content

Commit 5effc18

Browse files
authored
Update secureadmin.sh
Changed SSH cryptography from RSA to ED25519
1 parent 2b0e094 commit 5effc18

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
@@ -363,15 +363,15 @@ user_key_menu() {
363363

364364
if user_exists "$ssh_user"; then
365365
run_command mkdir -p "$ssh_dir"
366-
run_command ssh-keygen -t rsa -b 4096 -f "$ssh_dir/id_rsa"
366+
run_command ssh-keygen -t ed25519 -C "$ssh_user"
367367
run_command mv "$ssh_dir/id_rsa.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/id_rsa"
374+
run_command cat "$ssh_dir/ed25519"
375375
echo
376376
echo
377377
read -p "Press Enter to return to the menu."

0 commit comments

Comments
 (0)