SSH Tunneling to docker container
<p>I'm trying to establish an ssh tunnel to my docker container running on my remote Virtual Server.</p>

<p>Basically I followed the instruction here on <a href="https://stackoverflow.com/questions/28134239/how-to-ssh-into-docker">this post</a> where you also find more details about what I'm trying to achieve:</p>

<p>Stackoverflow's linked post: <a href="https://stackoverflow.com/questions/28134239/how-to-ssh-into-docker">How to SSH into Docker?</a></p>

<p>Actually I set up everything correctly but my connection is terminated every time with the following message:</p>

<hr>

<pre><code>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is &lt;rsa-key&gt;.
Please contact your system administrator.
Add correct host key in /home/rico/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/rico/.ssh/known_hosts:31 remove with: ssh-keygen -f "/home/rico/.ssh/known_hosts" -R [&lt;server-ip&gt;]:33
RSA host key for [&lt;server-ip&gt;]:33 has changed and you have requested strict checking.
Host key verification failed.
</code></pre>

<hr>

<p>I attached a screenshot here: 
<a href="https://s18.postimg.org/ivnnxj7a1/connection_closed.png" rel="nofollow noreferrer">https://s18.postimg.org/ivnnxj7a1/connection_closed.png</a></p>

<p>My command line is:</p>

<p><code>ssh -p 33 root@&lt;server-ip&gt;</code></p>

<p>where '33' is the ssh port of the docker container.</p>

<p>What I have to do in order to have the connection accepted by my Virtual Server?</p>

<p><strong>[UPDATE]</strong></p>

<p>run the command adding also -v flag and post the output:</p>

<pre><code>OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to &lt;server-ip&gt; [&lt;server-ip&gt;] port 44.
debug1: Connection established.
debug1: identity file /home/rico/.ssh/id_rsa type 1
debug1: identity file /home/rico/.ssh/id_rsa-cert type -1
debug1: identity file /home/rico/.ssh/id_dsa type -1
debug1: identity file /home/rico/.ssh/id_dsa-cert type -1
debug1: identity file /home/rico/.ssh/id_ecdsa type -1
debug1: identity file /home/rico/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/rico/.ssh/id_ed25519 type -1
debug1: identity file /home/rico/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server-&gt;client aes128-ctr hmac-sha1-etm@openssh.com none
debug1: kex: client-&gt;server aes128-ctr hmac-sha1-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA &lt;server-mac-address&gt;
debug1: Host '[&lt;server-ip&gt;]:44' is known and matches the ECDSA host key.
debug1: Found key in /home/rico/.ssh/known_hosts:32
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/rico/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: &lt;my-email&gt;@gmail.com
debug1: Authentications that can continue: publickey,password
debug1: Offering RSA public key: &lt;my-email&gt;@gmail.com
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/rico/.ssh/id_dsa
debug1: Trying private key: /home/rico/.ssh/id_ecdsa 
debug1: Trying private key: /home/rico/.ssh/id_ed25519
debug1: Next authentication method: password
root@&lt;server-ip&gt;'s password: 
</code></pre>

<p>Even if I set up a new root password it doesn't work</p>