Skip to content

Commit

Permalink
Update sshprep to use rsa-sha2-512
Browse files Browse the repository at this point in the history
Co-Authored-By: William Stearns <[email protected]>
  • Loading branch information
caffeinatedpixel and william-stearns committed Aug 19, 2024
1 parent e4a03e6 commit e5fbb07
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions installer/install_scripts/sshprep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#Performs all the setup steps needed to connect to one or more hosts listed on the command line
#Copyright 2022 William Stearns <[email protected]>
#Released under the GPL 3.0
#Version 0.1.5
#Version 0.1.6



Expand Down Expand Up @@ -142,7 +142,7 @@ check_key() {
if [ ! -s "$HOME/.ssh/id_rsa" ] && [ ! -s "$HOME/.ssh/id_rsa.pub" ]; then
status "No SSH RSA keypair, creating one. We strongly encourage you to provide a strong passphrase."
step "create ssh rsa keypair"
ssh-keygen -t rsa -b 4096 -f "$HOME/.ssh/id_rsa" #We don't force the comment; "user@host" is the default
ssh-keygen -t rsa-sha2-512 -b 4096 -f "$HOME/.ssh/id_rsa" #We don't force the comment; "user@host" is the default

elif [ -s "$HOME/.ssh/id_rsa" ] && [ ! -s "$HOME/.ssh/id_rsa.pub" ]; then
status "private key available but no public; we'll create the public key. You will be asked for your id_rsa private key passphrase."
Expand Down Expand Up @@ -312,4 +312,3 @@ sshprep_main() {


sshprep_main "$@"

0 comments on commit e5fbb07

Please sign in to comment.