We have a requirement to verify the rekeying in our application for an SSH connection.
ensure that within SSH connections, the same session keys are used for a threshold of no longer than one hour, and each encryption key is used to protect no more than one gigabyte of data. After any of the thresholds are reached, a rekey needs to be performed
We are using "Paramiko" for SSH connection. How to verify the time based threshold and packet size threshold in Paramiko and make sure that rekeying is working as expected.