<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Agence de Développement Informatique du Nord &#187; LXC</title>
	<atom:link href="http://blog.adin.pro/tag/lxc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>SSH Read from socket failed: Connection reset by peer</title>
		<link>http://blog.adin.pro/2013-07-07/ssh-read-from-socket-failed-connection-reset-by-peer/</link>
		<comments>http://blog.adin.pro/2013-07-07/ssh-read-from-socket-failed-connection-reset-by-peer/#comments</comments>
		<pubDate>Sun, 07 Jul 2013 07:32:32 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[LXC]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=268</guid>
		<description><![CDATA[<p>After installing a container with lxc I wasn&#8217;t able to connect via ssh to my container, I get the following message : Network works normally, I can ping, hotst both direction and I can get pages from apache&#8217;s container from &#8230; <a href="http://blog.adin.pro/2013-07-07/ssh-read-from-socket-failed-connection-reset-by-peer/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-07-07/ssh-read-from-socket-failed-connection-reset-by-peer/">SSH Read from socket failed: Connection reset by peer</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>After installing a container with lxc I wasn&#8217;t able to connect via ssh to my container, I get the following message :</p>
<pre class="brush: bash; title: ; notranslate">
root@ns313:~# ssh 10.50.10.10
Read from socket failed: Connection reset by peer
</pre>
<p>Network works normally, I can ping, hotst both direction and I can get pages from apache&#8217;s container from the dom0.</p>
<p>I tried to connect to ssh from container, in local and I get the same error.</p>
<pre class="brush: bash; title: ; notranslate">
root@container:/etc/ssh#ssh 10.50.10.10 -l root
Read from socket failed: Connection reset by peer
</pre>
<p>Strange, first time ssh doesn&#8217;t work on any machine.<br />
Try restart sshd</p>
<pre class="brush: bash; title: ; notranslate">
root@container:/etc/ssh# /etc/init.d/ssh restart
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
[....] Restarting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_dsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
. ok 
</pre>
<p>SSH keys are missing, to fix it, run this command :</p>
<pre class="brush: bash; title: ; notranslate">
root@container:/etc/ssh# ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ''
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-07-07/ssh-read-from-socket-failed-connection-reset-by-peer/">SSH Read from socket failed: Connection reset by peer</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-07-07/ssh-read-from-socket-failed-connection-reset-by-peer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
