Openssh server SSH2 rekey?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am unable to make the sshd initiate a SSH2 rekey. Is this
supported ? I always thought that the KeyRegenerationInterval option
would work for both Ssh1 and Ssh2 but seems not to be the case. I am
trying to test some scenarios and am setting the value to be a small
interval like 1 minute or 5 minute and don't see any evidence of the
rekey happening even in the debug mode. Is there some other option to

Thanks in advance,

PS: Using latest 4.7p1 on Solaris 9.

Re: Openssh server SSH2 rekey?

Quoted text here. Click to load it

KeyRegenerationInterval is how often the SSHv1 ephemeral server key is
regenerated.  It has no effect on SSHv2.

Quoted text here. Click to load it

There's no option to force it on the server side. You can force it on the
client side with the RekeyLimit option, although that takes a byte count
not a time interval.  You can also initiate a rekey using the "~R"
escape sequence on the client.

Darren Tucker (dtucker at
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.

Site Timeline