Answer the question
In order to leave comments, you need to log in
Key durability?
I don’t know which of these strong keys (github requirements to choose from these cipher keys):
ssh-rsa
ssh-dss
ssh-ed25519
ecdsa-sha2-nistp256
ecdsa-sha2-nistp384
ecdsa-sha2-nistp521
#! /bin/bash
pass=$(pwgen -s1 16)
key_name=$1
if [ x"${key_name}" == x"" ]; then
echo "$(basename $0) [key_name]"
else
ssh-keygen -b 4096 -t rsa -C "${key_name}" -f "${key_name}" -N ${pass}
pass_filename="${key_name}.password"
echo -e "Password: ${pass}\n" > ${pass_filename}
fi
-t type
Specifies the type of key to create. The possible values are “rsa1” for protocol version 1 and “dsa”, “ecdsa”, “ed25519”, or
“rsa” for protocol version 2.
Answer the question
In order to leave comments, you need to log in
Here is a good and fresh list of cryptos for those who don't want to think about durability and other troubles.
They recommend ed25519.
Everything is stable, but just RSA 2 is better. Ideally, you need AES!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question