class Net::SSH::Transport::Session

def rekey!

effect.
If a rekey is already pending, this returns immediately, having no
Requests a rekey operation, and blocks until the operation completes.
def rekey!
  if !algorithms.pending?
    algorithms.rekey!
    wait { algorithms.initialized? }
  end
end