title: Telnet [Unable to connect to remote host: Connection refused]
body: <p>I was trying to create a telnet connection between Ubuntu and Guest OS (Kali). But the problem "Unable to connect to remote host: Connection refused" occurs in both Ubuntu terminal and Guest OS (Kali) Terminal. I configured Guest OS's ip settings as follows and I can send ping packets perfectly from both side.</p>
  
  <p><a href="https://i.stack.imgur.com/XqiKK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/XqiKK.png" alt="enter image description here"></a>  </p>
  
  <p>According to ping packets sent and received, it seems there is no problem about connection line between these two system. But when I try to enter</p>
  
  <p>In Ubuntu:</p>
  
  <pre><code>telnet ipAddressOfGuestOS
  </code></pre>
  
  <p>or</p>
  
  <p>In Guest OS:</p>
  
  <pre><code>telnet ipAddressOfUbuntu
  </code></pre>
  
  <p>the terminal returns "Unable to connect to remote host: Connection refused" error. How can I handle this problem?</p>