Amba Giri wrote:
> I have ported OpenSSH 3.8p1 to a LynxOS platform. Recently I heard a
> report from the field that v2 is perceived to be significantly slower
> than v1. Is this a known issue? Are there any configuration parameters
> that can be modified to make v2 faster?


In general, SSHv2 is slower because it's stronger.

That said, there are some things that can be done to speed it up.

If you haven't already, fiddle with your compiler flags for both OpenSSL
and OpenSSH. In particular, enabling hardware multiply instructions (eg
-mv8 on SPARCs) makes a noticable difference to the Diffie-Hellman exchange.

If you upgraded sshd, make sure you use the moduli file from a recent
distribution. Older ones had 2kbit moduli that were actually 2k-1
bits, so sshd would end up using larger ones than requested.

Older OpenSSH clients would ask for larger moduli than intended too, so
newer clients ought to be faster too.

You can also fiddle with the moduli file itself: keep only the lines with
a generator of 2 (exponentiating 2 may be faster than 5 on some
architectures).

(Most of this only applies if your clients are using DH Group Exchange.)

There's some more information here:
http://www.openssh.com/faq.html#3.3

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev