<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 23: JSchException "timeout in wating for rekeying process." caused by waiting for user answer</title><link>https://sourceforge.net/p/jsch/support-requests/23/</link><description>Recent changes to 23: JSchException "timeout in wating for rekeying process." caused by waiting for user answer</description><atom:link href="https://sourceforge.net/p/jsch/support-requests/23/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 30 Jun 2015 16:17:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jsch/support-requests/23/feed.rss" rel="self" type="application/rss+xml"/><item><title>JSchException "timeout in wating for rekeying process." caused by waiting for user answer</title><link>https://sourceforge.net/p/jsch/support-requests/23/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;JSchException with "timeout in wating for rekeying process." message is received after prompt dialog "The authenticity of host '***' can't be established. RSA key fingerprint is ***. Are you sure you want to continue connecting?" requested to be shown to user had been answered.&lt;/p&gt;
&lt;p&gt;Timeout that is passed to com.jcraft.jsch.Session#connect(int) could be easily exceeded during user answer and will fail the check here:&lt;br /&gt;
      at com.jcraft.jsch.Session.write(Session.java:1343)&lt;br /&gt;
      at com.jcraft.jsch.Session.send_newkeys(Session.java:695)&lt;br /&gt;
      at com.jcraft.jsch.Session.connect(Session.java:348)&lt;/p&gt;
&lt;p&gt;Steps to reproduce:&lt;br /&gt;
1. Be sure that the host we are connecting to is not in ~/.ssh/known_hosts (e.g. empty it)&lt;br /&gt;
2. Set com.jcraft.jsch.Session#setUserInfo(UserInfo) with implementation that returns result from com.jcraft.jsch.UserInfo#promptYesNo() in several seconds&lt;br /&gt;
3. Invoke com.jcraft.jsch.Session#connect(int) with timeout that is less than in step 2&lt;br /&gt;
4. Get JSchException&lt;/p&gt;
&lt;p&gt;Is this right to consider both user answer time from UI and server interaction time in the same timeout value?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alexander</dc:creator><pubDate>Tue, 30 Jun 2015 16:17:23 -0000</pubDate><guid>https://sourceforge.net29e1c72605a27d5ee874b42682bbb65b58160b0c</guid></item></channel></rss>