by developer2 · 10y ago · 0 comments
There is absolutely no reason to pass arguments to ssh-keygen. If it is actually deemed necessary to do so, then that package's installation is inexcusably broken.
This is the case with the secure-delete package for srm and sfill. Each argument changes the writes to make them less secure.
I just throw a script in my ~/bin folder called `keygen`:
exec ssh-keygen -t rsa -b 4096 -C "" "$@"Admittedly this isn't an issue for most people.
https://github.com/Lattyware.keys - GitHub leave it blank:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAx5F7iJTDwbPrdhrTtVdQRtozcRDvGNuU7BB+4+mHi
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6WfINFFvzT+Z+l5sYq9zJoyXPLL27v9vvE1+p1XOiW
https://gitlab.com/latty.keys - GitLab add a generated comment: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL6WfINFFvzT+Z+l5sYq9zJoyXPLL27v9vvE1+p1XOiW Gareth Latty (gitlab.com)
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGAx5F7iJTDwbPrdhrTtVdQRtozcRDvGNuU7BB+4+mHi Gareth Latty (gitlab.com)
In my case, I'd actually quite like the comments to be left in, one of those is my personal key, one is for work. Differentiating is useful depending on why I have access.Today it's my hostname. Tomorrow ssh-keygen (with default arguments) could start including more sensitive information, like the IPv6 address of my machine that's open to the internet and its exact OS version, and leave me open to a lot of attacks. Hence, I'm not going to trust the default arguments for it.
Second, if you don't trust ssh-keygen, why the heck do you use it in the first place?
alias keygen="ssh-keygen -t rsa -b 4096 -C ''"I too, say, No f'ing thanks https://en.wikipedia.org/wiki/Curve25519 In cryptography, Curve25519 is an elliptic curve offering 128 bits of security - The curve is birationally equivalent to Ed25519, a Twisted Edwards curve.
Ecrypt II - the EU project into encryption security says: https://www.keylength.com/en/3/
That gives you
Very short-term protection against small organizations Should not be used for confidentiality in new systems
and is equivelent to an 816bit RSA key
So how is this new key "Sexy" in any way.
> Long-term protection
> Generic application-independent recommendation, protection from 2016 to 2040