<div dir="ltr">Hello!<br><br>I try to use lago.ssh for ssh connection to non-host vm in ovirt-system-tests.<div>And I have login/password (not root) for vm, but have not ssh-key. </div><div>I try to use lago.ssh.get_ssh_client() to get connection but there is next code there:<br><br></div><div><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">if ssh_key:</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">  client.connect(</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      ip_addr,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      username=username,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      password=password,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      key_filename=ssh_key,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      timeout=ssh_timeout,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      )</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">  else:</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">     client.connect(</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">         ip_addr,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">         username=&#39;root&#39;,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">         timeout=ssh_timeout,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">     )</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">     break</span></div><div><span class="gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)"><br></span></div>But if I can&#39;t use key file, client should try to connect using login/password. <br>And according this code I have to create empty file for this function and delete it after.<br>(if ssh key != None but in is not existed file, client.connect )<br><div>Example is there:<br><a href="https://github.com/vmakarova/ovirt-system-tests/commit/855dbdf379730d55daf51851052d71daa45d9a09">https://github.com/vmakarova/ovirt-system-tests/commit/855dbdf379730d55daf51851052d71daa45d9a09</a></div><div><br></div><div>Is it a bug? Or is there some reasons for implementing this logic?<br><br style="font-size:12.8px"><span style="font-size:12.8px">Sincerely, Valentina Makarova</span>  </div></div>