Hi, I'm probably a few months too late, but I've pushed a patch on master that implements key re-exchange and should fix your problem. It was not trivial at all !
(please comment on the bug issue if you have an account) https://red.libssh.org/issues/16 Aris Le 1/05/12 14:32, Aviv Zilberman a écrit : > *Hello, * > > * * > > *I want to start using with libssh in order to achieve SSH communication.* > > *The problem is that the target SSH server (not SFTP server in my case) > is also configuring to drop the session after 1G or 1 hour.* > > *I notice the following limitation of libssh in below link and I have 2 > questions :* > > *http://www.libssh.org/archive/libssh/2012-04/0000001.html* > > *1) **As far as I understood from the RFC only the _symmetric_ > session key itself supposed to be exchange – no need to repeat the > initialize handshake include _asymmetric_ keys.* > > *I am right ? is it done automatically ? I think openssh support it so > why libssh not ?* > > *2) **Assuming I would like to support it anyway. Is there a way to > do so using libssh ? if so, what it is ?* > > * * > > *Thanks in advance,* > > *Aviv Zilberman.* > > > > This e-mail message is intended for the recipient only and contains > information which is CONFIDENTIAL and which may be proprietary to ECI > Telecom. If you have received this transmission in error, please inform > us by e-mail, phone or fax, and then delete the original and all copies > thereof. >
