title: ssh: connect to host localhost port 2222: Connection refused
body: <p>I installed <code>Virtual Box</code> on my <code>Linux</code> OS, in the Virtual Box, I created another <code>Linux</code> OS, which has a user called "dvader", I want to SSH from my local Linux OS to the Linux OS on Virtual Box, I used the command below:</p>
  
  <pre><code>$ ssh -p 2222 dvader@localhost
  </code></pre>
  
  <p>But I always got the error:</p>
  
  <pre><code>ssh: connect to host localhost port 2222: Connection refused
  </code></pre>
  
  <p>Anyone knows how to solve this problem? Thank you in advance. </p>