<?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; SSH</title>
	<atom:link href="http://blog.adin.pro/category/ssh/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 scp error no hostkey alg</title>
		<link>http://blog.adin.pro/2013-07-07/ssh-scp-error-no-hostkey-alg/</link>
		<comments>http://blog.adin.pro/2013-07-07/ssh-scp-error-no-hostkey-alg/#comments</comments>
		<pubDate>Sun, 07 Jul 2013 11:34:33 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=272</guid>
		<description><![CDATA[<p>ssh works well but when you try to copy a file via scp you get this error Go on your server and check if you have /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key files, if not, generate them</p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-07-07/ssh-scp-error-no-hostkey-alg/">SSH scp error no hostkey alg</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>ssh works well but when you try to copy a file via scp you get this error</p>
<pre class="brush: bash; title: ; notranslate">
no hostkey alg
</pre>
<p>Go on your server and check if you have /etc/ssh/ssh_host_rsa_key and /etc/ssh/ssh_host_dsa_key files, if not, generate them</p>
<pre class="brush: bash; title: ; notranslate">
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-07-07/ssh-scp-error-no-hostkey-alg/">SSH scp error no hostkey alg</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-scp-error-no-hostkey-alg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>SSH How to connect without password</title>
		<link>http://blog.adin.pro/2013-07-06/ssh-how-to-connect-without-passowrd/</link>
		<comments>http://blog.adin.pro/2013-07-06/ssh-how-to-connect-without-passowrd/#comments</comments>
		<pubDate>Sat, 06 Jul 2013 12:33:37 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=261</guid>
		<description><![CDATA[<p>A classic hack for linux users, connect via ssh without password. First, on your client, generate public key keep ~/.ssh/id_rsa by default. Copy public key (~/.ssh/id_rsa.pub) from your client to the file ~/.ssh/authorized_keys2 on the server with the ssh-copy-id binary. &#8230; <a href="http://blog.adin.pro/2013-07-06/ssh-how-to-connect-without-passowrd/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-07-06/ssh-how-to-connect-without-passowrd/">SSH How to connect without password</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>A classic hack for linux users, connect via ssh without password.</p>
<p>First, on your client, generate public key</p>
<pre class="brush: bash; title: ; notranslate">
ssh-key-gen -t rsa
</pre>
<p>keep ~/.ssh/id_rsa by default.</p>
<p>Copy public key (~/.ssh/id_rsa.pub) from your client to the file ~/.ssh/authorized_keys2 on the server with the ssh-copy-id binary.</p>
<p>Then edit your ~/.ssh/config file on client side to custom your params:</p>
<pre class="brush: bash; title: ; notranslate">
Host dev
  HostName dev.domain.com
  Port 22
  User root
</pre>
<p>Finaly, you can add an alias in your ~/.bashrc</p>
<pre class="brush: bash; title: ; notranslate">
alias dev='ssh dev'
</pre>
<p>Now, to launche a ssh connection, just run</p>
<pre class="brush: bash; title: ; notranslate">
dev
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-07-06/ssh-how-to-connect-without-passowrd/">SSH How to connect without password</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-06/ssh-how-to-connect-without-passowrd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
