<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Marcusmiranda</title>
	<atom:link href="http://marcusmiranda.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://marcusmiranda.wordpress.com</link>
	<description>אַנוויילינג די טעכנאָלאָגיע</description>
	<lastBuildDate>Mon, 25 Jul 2011 22:08:26 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='marcusmiranda.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Marcusmiranda</title>
		<link>http://marcusmiranda.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://marcusmiranda.wordpress.com/osd.xml" title="Marcusmiranda" />
	<atom:link rel='hub' href='http://marcusmiranda.wordpress.com/?pushpress=hub'/>
		<item>
		<title>SCP+ARC4</title>
		<link>http://marcusmiranda.wordpress.com/2011/07/25/scp-arc4/</link>
		<comments>http://marcusmiranda.wordpress.com/2011/07/25/scp-arc4/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 22:07:27 +0000</pubDate>
		<dc:creator>marcusmiranda</dc:creator>
				<category><![CDATA[GNU\Linux]]></category>
		<category><![CDATA[Rapidinha]]></category>
		<category><![CDATA[Redes]]></category>

		<guid isPermaLink="false">http://marcusmiranda.wordpress.com/?p=233</guid>
		<description><![CDATA[Uma boa dica para fazer uma transmissão de arquivos entre maquinas é usar o SCP. Porém o SCP não transmite de forma tão segura os arquivos entre hosts. Ai é que entre o ACR4, um simples algoritmo desenvolvido para criptografar os dados, além de aumentar a velocidade de transferência dos dados. Fica ai a dica. <a href="http://marcusmiranda.wordpress.com/2011/07/25/scp-arc4/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusmiranda.wordpress.com&amp;blog=3585503&amp;post=233&amp;subd=marcusmiranda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://marcusmiranda.files.wordpress.com/2011/07/images.jpeg"><img class="alignleft size-thumbnail wp-image-235" title="images" src="http://marcusmiranda.files.wordpress.com/2011/07/images.jpeg?w=83&#038;h=100" alt="" width="83" height="100" /></a>Uma boa dica para fazer uma transmissão de arquivos entre maquinas é usar o SCP.<br />
Porém o SCP não transmite de forma tão segura os arquivos entre hosts.<br />
Ai é que entre o ACR4, um simples algoritmo desenvolvido para criptografar os dados, além de aumentar a velocidade de transferência dos dados.</p>
<p>Fica ai a dica.</p>
<p><pre class="brush: bash;">

scp -c arcfour -r  file  hosts

</pre></p>
<p>EX:</p>
<p><pre class="brush: bash;">

scp -c arcfour -r  movie  marcusmiranda@xxx.xxx.xxx.xxx:/backup

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/marcusmiranda.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/marcusmiranda.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/marcusmiranda.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/marcusmiranda.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/marcusmiranda.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/marcusmiranda.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/marcusmiranda.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/marcusmiranda.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusmiranda.wordpress.com&amp;blog=3585503&amp;post=233&amp;subd=marcusmiranda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://marcusmiranda.wordpress.com/2011/07/25/scp-arc4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8361a2432fc773a8a94cab621a71a759?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marcusmiranda</media:title>
		</media:content>

		<media:content url="http://marcusmiranda.files.wordpress.com/2011/07/images.jpeg?w=125" medium="image">
			<media:title type="html">images</media:title>
		</media:content>
	</item>
		<item>
		<title>Deletando arquivos</title>
		<link>http://marcusmiranda.wordpress.com/2011/03/18/deletando-arquivos/</link>
		<comments>http://marcusmiranda.wordpress.com/2011/03/18/deletando-arquivos/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 20:40:32 +0000</pubDate>
		<dc:creator>marcusmiranda</dc:creator>
				<category><![CDATA[Rapidinha]]></category>
		<category><![CDATA[GNU linux]]></category>

		<guid isPermaLink="false">http://marcusmiranda.wordpress.com/?p=186</guid>
		<description><![CDATA[É comum o seu disco encher e você não conseguir apagar os seus arquivos ou deletar alguns arquivos de log&#8217;s com um simples comando &#8221; rm -rfv *.* &#8221; alem do mais aparece o seguinte erro: Ai vai uma maneira fácil e simples de deletar o seus arquivos quando der este erro. Esse erro acontece <a href="http://marcusmiranda.wordpress.com/2011/03/18/deletando-arquivos/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusmiranda.wordpress.com&amp;blog=3585503&amp;post=186&amp;subd=marcusmiranda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000;">É comum o seu  disco encher e você não conseguir apagar os seus arquivos ou deletar alguns arquivos de log&#8217;s com um simples comando &#8221; rm -rfv *.* &#8221; alem do mais aparece o seguinte erro:</span></p>
<p><a href="http://marcusmiranda.files.wordpress.com/2011/03/sem-tc3adtulo2.png"></a><a href="http://marcusmiranda.files.wordpress.com/2011/03/sem-tc3adtulo3.png"><img class="aligncenter size-medium wp-image-200" title="Sem título" src="http://marcusmiranda.files.wordpress.com/2011/03/sem-tc3adtulo3.png?w=376&#038;h=35" alt="" width="376" height="35" /></a></p>
<p><span style="color:#000000;">Ai vai uma maneira fácil e simples de deletar o seus arquivos quando der este erro.</span></p>
<p><span style="color:#000000;">Esse erro acontece por que a lista de arquivos que você deseja delatar é muito grande, desta forma o comando &#8220;rm&#8221; por se só,  não consegue ler todos os seus arquivos e deletar. </span></p>
<p><span style="color:#000000;">Para resolver este problema, basta executar o seguinte comando:</span></p>
<p><span style="text-decoration:underline;"><span style="color:#000000;"><strong>Deletando por nome:</strong></span></span></p>
<p><pre class="brush: bash;">
     find -name &quot;*file*&quot; -exec rm -rfv {} \;
</pre></p>
<p><span style="text-decoration:underline;"><strong><span style="color:#000000;">Deletando por data:</span></strong></span></p>
<p><pre class="brush: bash;">
	find -ctime 10 -exec  rm -rfv  {} \;
</pre></p>
<p><span style="color:#ff0000;"><br />
* deletando os arquivos que foram alterados nos últimos 10 dias</span></p>
<p><span style="text-decoration:underline;"><strong><span style="color:#000000;">Utilizando o for:</span></strong></span></p>
<p><pre class="brush: bash;">
	 for a in *&quot;file&quot;*; do rm -Rfv $a; done
</pre></p>
<p><span style="color:#000000;">Se você conhece outra maneira de apagar arquivos grandes como log&#8217;s.  Deixe um comentário!</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/marcusmiranda.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/marcusmiranda.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/marcusmiranda.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/marcusmiranda.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/marcusmiranda.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/marcusmiranda.wordpress.com/186/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/marcusmiranda.wordpress.com/186/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/marcusmiranda.wordpress.com/186/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusmiranda.wordpress.com&amp;blog=3585503&amp;post=186&amp;subd=marcusmiranda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://marcusmiranda.wordpress.com/2011/03/18/deletando-arquivos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8361a2432fc773a8a94cab621a71a759?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marcusmiranda</media:title>
		</media:content>

		<media:content url="http://marcusmiranda.files.wordpress.com/2011/03/sem-tc3adtulo3.png?w=300" medium="image">
			<media:title type="html">Sem título</media:title>
		</media:content>
	</item>
		<item>
		<title>Resolvendo &#8211; SSH sem pedir a senha</title>
		<link>http://marcusmiranda.wordpress.com/2011/01/31/resolvendo-ssh-sem-pedir-a-senha/</link>
		<comments>http://marcusmiranda.wordpress.com/2011/01/31/resolvendo-ssh-sem-pedir-a-senha/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 13:20:08 +0000</pubDate>
		<dc:creator>marcusmiranda</dc:creator>
				<category><![CDATA[GNU\Linux]]></category>
		<category><![CDATA[Network]]></category>

		<guid isPermaLink="false">http://marcusmiranda.wordpress.com/?p=164</guid>
		<description><![CDATA[Como tinha postado anteriormente. Estou trabalhando muito e com isso não estou tendo tempo suficiente para me dedicar ao blog. Porem hoje achei um tempo para escrever sobre um pequeno problema, mais que me deu muita dor de cabeça para resolver. Vamos lá. Dias atrás precisei montar um servidor para fazer 9 conexões via ssh <a href="http://marcusmiranda.wordpress.com/2011/01/31/resolvendo-ssh-sem-pedir-a-senha/" class="excerpt-more-link">[&#8230;]</a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusmiranda.wordpress.com&amp;blog=3585503&amp;post=164&amp;subd=marcusmiranda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Como tinha postado anteriormente. Estou trabalhando muito e com isso não estou tendo tempo suficiente para me dedicar ao blog.<br />
Porem hoje achei um tempo para escrever sobre um pequeno problema, mais que me deu muita dor de cabeça para resolver.<a href="http://marcusmiranda.files.wordpress.com/2011/01/ssh.jpg"><img class="alignleft size-thumbnail wp-image-165" title="ssh" src="http://marcusmiranda.files.wordpress.com/2011/01/ssh.jpg?w=150&#038;h=150" alt="" width="150" height="150" /></a></p>
<p>Vamos lá.<br />
Dias atrás precisei montar um servidor para fazer 9 conexões via ssh sem pedir a senha do usuário.<br />
Fiz todo o procedimento correto de criar uma chave no servidor e sair distribuído essa chave para os servidores cliente. Ate aqui tudo andava corretamente.</p>
<p><span style="color:#ff0000;"><strong>1º procedimento</strong></span></p>
<p># ssh-keygen -t rsa -f ~/.ssh/id_rsa</p>
<p><span style="color:#ff0000;"><strong>2º procedimento</strong></span><br />
Iniciei a distribuição das chaves para os servidores cliente.</p>
<p># cat ~/.ssh/id_rsa.pub | ssh usuario@xxx.xxx.xxx.xxx &#8216;cat &#8211; &gt;&gt; ~/.ssh/authorized_keys&#8217;<br />
# cat ~/.ssh/id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys</p>
<p>1 Servidor &#8211; ok<br />
2 Servidor &#8211; ok<br />
.<br />
.<br />
.<br />
9 Servidor &#8211; ok</p>
<p><span style="color:#ff0000;"><strong>3º procedimento</strong></span><br />
Ao tentar conectar via ssh no 9º servidor o mesmo pedia senha.<br />
Recriei novas chaves, fiz todo o procedimento novamente e nada. Toda tentativa de conectar via ssh o servidor cliente pedia uma senha.<br />
Depois de varias horas perdidas tentando efetuar uma conexão ssh, resolve da uma olhada no Log. Pela minha surpresa apareceu o seguinte erro.</p>
<p># Dec 14 16:27:39 Servidor09 sshd[14746]: Authentication refused: bad ownership or modes for file /home/usuario/.ssh/authorized_keys</p>
<p>Ai comecei a fazer algumas pesquisas. Olhei permissão dos diretórios, dei permissão e nada de conseguir a conexão ssh sem pedir a senha.<br />
Mas como tudo tem um segredinho.  Verifiquei o sshd.config do servidor cliente e la estava o pequeno detalhe.</p>
<p><strong> StrictModes yes</strong></p>
<p>Fiz  a seguinte alteração</p>
<p><strong> StrictModes no</strong></p>
<p>A opção StrictModes especifica se o ssh deve verificar permissões do usuário em seu diretório home e rhosts antes de aceitar login.</del></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/marcusmiranda.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/marcusmiranda.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/marcusmiranda.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/marcusmiranda.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/marcusmiranda.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/marcusmiranda.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/marcusmiranda.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/marcusmiranda.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=marcusmiranda.wordpress.com&amp;blog=3585503&amp;post=164&amp;subd=marcusmiranda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://marcusmiranda.wordpress.com/2011/01/31/resolvendo-ssh-sem-pedir-a-senha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8361a2432fc773a8a94cab621a71a759?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">marcusmiranda</media:title>
		</media:content>

		<media:content url="http://marcusmiranda.files.wordpress.com/2011/01/ssh.jpg?w=150" medium="image">
			<media:title type="html">ssh</media:title>
		</media:content>
	</item>
	</channel>
</rss>
