News for hackers. Stuff that matters.
Re:Generating 16384 Bit SSH Keys by zobzu on Thursday September 27, 2012 @07:29PM (#4583466)
Forget 16kbits keys.

Use this: ssh-keygen -b 521 -t ecdsa

That's (a lot) faster than RSA 16384 bit keys. A 200bit ECDSA key is +- (there's many factors involved) equivalent to a 2048bit RSA key.

Also the 521bit ECDSA not only verifies faster, it generates instantly (on current hardware), instead of taking a few coffess with the 16K RSA.

Finally, remember that, by the time we've enough computer power to brute force either of the above, one of these will probably happen:

- RSA or ECDSA may be logically broken

- you will be dead

- the hardware and software will not run anymore

- a new computer power breakthrough will make the choice of strength and cipher irrelevant (one can hope)

Re:Generating 16384 Bit SSH Keys by AdamGibbins on Thursday September 27, 2012 @07:31PM (#4583474)
This is a valid point however unfortunately is limited to systems running recent versions of OpenSSH; ECSDA is relatively new. If you connect to a large amount of boxes (as do I), your ECDSA simply will not work on older pre-ECDSA versions of OpenSSH.

That said, nothing preventing you having a mixture of keys for different hosts and modifying your ssh_config to use the correct key dependant on the domain.

Re:Generating 16384 Bit SSH Keys by ComputerGuru on Thursday September 27, 2012 @07:36PM (#4583498)
Small ECDSA key by default, 16kbit RSA fallback?

Both are very secure, but ECDSA will not have the long negotation times. Problem solved?

Re:Generating 16384 Bit SSH Keys by tptacek on Thursday September 27, 2012 @11:13PM (#4584129)
You do not need a 16k RSA key.
Re:Generating 16384 Bit SSH Keys by ComputerGuru on Thursday September 27, 2012 @11:39PM (#4584197)
Or whatever. Just giving an example.
Re:Generating 16384 Bit SSH Keys by newman314 on Friday September 28, 2012 @01:01AM (#4584376)
I have the following in my ssh config file.

  Host *
  IdentityFile ~/.ssh/id_ecdsa
  IdentityFile ~/.ssh/id_rsa
  HashKnownHosts yes
  VisualHostKey yes
Re:Generating 16384 Bit SSH Keys by ars on Thursday September 27, 2012 @07:36PM (#4583497)
Looks like it's from OpenSSH 5.7 released on Jan 25, 2011.
Re:Generating 16384 Bit SSH Keys by AdamGibbins on Thursday September 27, 2012 @07:42PM (#4583516)
Which is unfortunately a very new version compared to most distros. CentOS 6 for example has only 5.3. Debian Squeeze, 5.5. Ubuntu Precise, 5.9.
Re:Generating 16384 Bit SSH Keys by newman314 on Friday September 28, 2012 @12:57AM (#4584369)
Even MacOS Lion does not support ECDSA.
Re:Generating 16384 Bit SSH Keys by lotyrin on Thursday September 27, 2012 @07:27PM (#4583459)
Because more = better (obviously), and my keys are going to continue to have privileges on machines several hundred years from now.

/s

Re:Generating 16384 Bit SSH Keys by Zenst on Thursday September 27, 2012 @07:31PM (#4583472)
Yes can imagine some digital archaeologist in a few hundred years time thinking they have hit Indiana Jones payday only to get his mom's receipe for flapjacks.
Re:Generating 16384 Bit SSH Keys by peterwwillis on Thursday September 27, 2012 @11:32PM (#4584181)
I would like to point out that you can not future-proof anything that's security-related. You must have a plan to be able to upgrade or replace any security measures you have today, because the chance they'll be broken in your lifetime is extremely high.
Re:Generating 16384 Bit SSH Keys by jlgreco on Thursday September 27, 2012 @06:59PM (#4583361)
Would be interesting to see some numbers for some (actually) low powered hardware. An i5 from a year ago taking almost a quarter of a second doesn't sound to great in my book.
Re:Generating 16384 Bit SSH Keys by problemdomain on Thursday September 27, 2012 @07:20PM (#4583436)
A couple years ago I ran tests on an embedded Broadcom platform (7413, clocked at 400MHz IIRC) because I wasn't sure what was reasonable for SSL certificates when a box like that was involved.

I ended up using 2048 for both the client and server certificates. 4096 on the client would have taken several seconds to negotiate, and 4096 on the server was too expensive for the number of clients I wanted to pack onto a single server. (Also, I didn't have proper control of the entire client software stack, and the behavior of part of it with regard to session management and keepalive was extremely non-optimal.)

Based on that experience, I don't think I'd really want to use a 16384-bit key on a low-resource system anytime soon. Right now, 2048 ought to be plenty for any information that doesn't have to be kept secret over a very long time horizon (decades, at least), and anything over 4096 is getting pretty paranoid. 16384 seems obscene.

Re:Generating 16384 Bit SSH Keys by Zenst on Thursday September 27, 2012 @07:27PM (#4583460)
This may be one way in curtailing bring your own device mentalities but beyond that any security system is always a compromise in one way or another. Also it is only as strong as the weakest link and if your the only user logged onto the box via ssh and others have weaker keys then you start to see the flaws.

But if everybody who logs on uses the same level of security, then it is that secure, otherwise it realy is down to the weakest link and even a home box can be taken out by a house cat who can't even use the vi editor.

Re:Generating 16384 Bit SSH Keys by Firehed on Thursday September 27, 2012 @09:22PM (#4583855)
How many housecats have you met that can use vi?
Re:Generating 16384 Bit SSH Keys by krichman on Thursday September 27, 2012 @10:24PM (#4584018)
It's easier for them to use vi than emacs, because they don't have to use so many paws.
Re:Generating 16384 Bit SSH Keys by tomjakubowski on Thursday September 27, 2012 @10:28PM (#4584024)
Clever cats press Ctrl with their tail.
Re:Generating 16384 Bit SSH Keys by Zenst on Friday September 28, 2012 @04:02AM (#4584652)
anybody or animal can use vi, its the ability to do something meaningful that is the were most fall short.

Though the cat was there for grammatic effect I will admit.

Re:Generating 16384 Bit SSH Keys by erikano on Thursday September 27, 2012 @10:11PM (#4583980)
github didn't seem to like that. I gave it my 16k pub-key. It gave me a 500 error :(