G
G
goadv2018-05-27 08:18:05
SSH
goadv, 2018-05-27 08:18:05

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

I have a script that generates keys and passwords (currently written like this):
#! /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

Found in man ssh-keygen:
-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.

Still I want to ask what a cool cipher?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
chupasaurus, 2018-05-27
@chupasaurus

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.

M
marataziat, 2018-05-27
@marataziat

Everything is stable, but just RSA 2 is better. Ideally, you need AES!

S
sim3x, 2018-05-27
@sim3x

https://security.stackexchange.com/questions/13101...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question