<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<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/"
	>

<channel>
	<title>openssh &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://en.wordpress.com/tag/openssh/</link>
	<description>Feed of posts on WordPress.com tagged "openssh"</description>
	<pubDate>Tue, 01 Dec 2009 05:46:59 +0000</pubDate>

	<generator>http://en.wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Linux - Configurando hosts favoritos no SSH]]></title>
<link>http://andreysmith.wordpress.com/2009/11/28/favoritos-no-ssh/</link>
<pubDate>Sat, 28 Nov 2009 13:28:37 +0000</pubDate>
<dc:creator>Andrey Smith</dc:creator>
<guid>http://andreysmith.wordpress.com/2009/11/28/favoritos-no-ssh/</guid>
<description><![CDATA[Introdução Acesso remoto é algo que faz parte da rotina de administradores de rede, e em ambientes U]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><a rel="attachment wp-att-214"><img class="aligncenter size-full wp-image-214" title="openssh" src="http://andreysmith.wordpress.com/files/2009/11/openssh.png" alt="" width="194" height="191" /></a></p>
<p><strong>Introdução</strong></p>
<p>Acesso remoto é algo que faz parte da rotina de administradores de rede, e em ambientes Unix e Linux, o SSH é o protocolo mais utlizado para esta tarefa. Neste tutorial, irei mostrar como configurar host alias no SSH.<!--more--></p>
<p><strong>Pré-requisitos</strong></p>
<p>OpenSSH → É uma coleção de programas de computador quem provem a criptografia em sessões de comunicações em uma rede de computadores usando o protocolo SSH.</p>
<p><strong>Mão à obra</strong></p>
<p>Há duas maneiras de criar os aliases:</p>
<p><strong>1. Alias para todos usuários do sistema</strong></p>
<p>Efetuar estas configurações logado como root.<br />
# vim /etc/ssh/ssh_config</p>
<p>Adicionar as linhas abaixo no final do arquivo<br />
Host tico<br />
HostName 192.168.0.1<br />
User root<br />
Port 8082</p>
<p>Host → É o alias (apelido) para a máquina remota<br />
HostName → Pode ser utilizado o hostname ou IP da máquina remota<br />
User → Usuário que será utlizado para efetuar o acesso remoto<br />
Port → É especificado quando o ssh não está sendo executado na porta padrão (22), caso contrário, esta linha torna-se desnecessária.</p>
<p>Obs.: Para usuários Mac, o arquivo de configuração está localizado em /etc/ssh_config.</p>
<p><strong>2. Alias válido apenas para usuário</strong></p>
<p>Efetuar estas configurações com usuário diferente do usuário root, neste exemplo utilizarei o usuário smith.<br />
Caso o diretório .ssh não exista, basta cria-lo com comando abaixo<br />
$ mkdir ~/.ssh</p>
<p>Conceder a permissão necessária<br />
$ chmod 700 ~/.ssh</p>
<p>Criar aliases<br />
$ vim ~/.ssh/config</p>
<p>Conteúdo do arquivo config:<br />
Host teco<br />
HostName 192.168.0.2<br />
User smith</p>
<p>O arquivo config deve ter permissão 600, ou seja, deve estar acessível apenas para o usuário dono do arquivo.</p>
<p><strong>Prova dos nove</strong></p>
<p>Neste ponto do tutorial existem dois aliases criados, um para todos usuários do sistema e outro apenas para o usuário smith.</p>
<p><strong>Testar acesso remoto</strong></p>
<p>As duas tentivas de acesso a máquina remota tico, devem funcionar, pois o alias foi criado para todos usuários do sistema.<br />
Executar o comando abaixo logado com usuário root.<br />
# ssh tico<br />
Executar o comando abaixo logado com usuário utilizado para criar alias de usuário (smith)<br />
$ ssh tico</p>
<p>Apenas a segunda tentiva de acesso a máquina remota teco, deve funcionar, pois o alias foi criado apenas para o usuário smith.<br />
Executar o comando abaixo logado com usuário root<br />
# ssh teco<br />
Executar o comando abaixo logado com usuário utilizado para criar alias de usuário (smith)<br />
$ ssh teco</p>
<p><strong>Testar cópia de arquivos remoto</strong></p>
<p># scp  /etc/ssh/ssh_config tico:/home<br />
$ scp ~/.ssh/config teco:/home</p>
<p><strong>Conclusão</strong></p>
<p>Alisases no ssh ajudam a manter de forma organizada, uma lista dos computadores remotos que são mais acessados diariamente.</p>
<p>:wq<br />
Andrey Smith</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Second iPhone Worm Used For Malicious Purposes]]></title>
<link>http://sbraidley.wordpress.com/2009/11/23/second-iphone-worm-used-for-malicious-purposes/</link>
<pubDate>Mon, 23 Nov 2009 20:51:22 +0000</pubDate>
<dc:creator>sbraidley</dc:creator>
<guid>http://sbraidley.wordpress.com/2009/11/23/second-iphone-worm-used-for-malicious-purposes/</guid>
<description><![CDATA[There has been news today of yet another iPhone worm that affects users who have unsecured SSH insta]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>There has been news today of yet another iPhone worm that affects users who have unsecured SSH installed on their device.</p>
<p>Security Company, F-Secure, has unearthed this latest worm for the iPhone which targets people in the Netherlands, <a href="http://sbraidley.wordpress.com/2009/11/03/dutch-hacker-hacks-into-jailbroken-iphones/" target="_blank">as it did before with the first exploit of unsecured SSH</a>. It targets users who use their iPhone to online bank with ING. Much like a phishing attack, it redirects the bank&#8217;s users to a look-a-like website with a log-in screen.</p>
<p><a href="http://sbraidley.wordpress.com/files/2009/11/duh.png"><img class="aligncenter size-full wp-image-826" title="Dutch iPhone Worm" src="http://sbraidley.wordpress.com/files/2009/11/duh.png" alt="" width="450" height="101" /></a></p>
<p>The worm only affects jailbroken devices as before, and only devices with SSH that has the default password are affected. This latest worm is more serious than the ones prior, as they were created to warn people, that things such as this could happen. The security company, F-Secure, have also said that it can behave like a botnet and send itself to other un-secure devices on a local WiFi network.</p>
<p>The phone can be controlled by the hacker remotely without the knowledge or permission of the user. Hackers can ring people, text people, copy your contacts or what ever they wish with your device if it&#8217;s left open. At the moment it&#8217;s only spreading around the Netherlands, but soon enough malicious hackers will most likely take advantage of the users who don&#8217;t change the default password.</p>
<p>A spokesperson for ING Bank said that a warning was going to be put on the bank&#8217;s official website.</p>
<p>&#8220;We are also briefing call centre personnel,&#8221; she added. &#8220;It&#8217;s important to remember that the worm only affects jail-broken phones and it is only aimed at customers in the Netherlands.&#8221;</p>
<p>If your device is jailbroken and you believe SSH maybe, or is installed then please read <a href="http://sbraidley.wordpress.com/2009/11/03/how-to-change-your-iphones-ssh-password/" target="_blank">this guide to secure your device</a>. Many other guides will not fully protect you as they only change the mobile user password and not the root.</p>
<p>If you wish to read more from F-Secure on this issue <a href="http://www.f-secure.com/weblog/archives/00001822.html" target="_blank">click here</a>.</p>
<p>Related:</p>
<p><a href="http://sbraidley.wordpress.com/2009/11/03/how-to-change-your-iphones-ssh-password/" target="_blank">How To: Change Your iPhone’s SSH Password</a><a href="http://sbraidley.wordpress.com/2009/11/08/iphone-worm-rickrolls-jailbroken-devices/" target="_blank"><br />
</a><a href="http://sbraidley.wordpress.com/2009/11/03/dutch-hacker-hacks-into-jailbroken-iphones/" target="_blank">Dutch Hacker Hack’s Into Jailbroken iPhone’s</a><a href="http://sbraidley.wordpress.com/2009/11/08/iphone-worm-rickrolls-jailbroken-devices/" target="_blank"><br />
</a><a href="http://sbraidley.wordpress.com/2009/11/08/iphone-worm-rickrolls-jailbroken-devices/" target="_blank">iPhone Worm Rickrolls Jailbroken Devices</a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Debian'da SSH]]></title>
<link>http://debiantr.wordpress.com/2009/11/21/debianda-ssh/</link>
<pubDate>Sat, 21 Nov 2009 21:30:14 +0000</pubDate>
<dc:creator>debiantr</dc:creator>
<guid>http://debiantr.wordpress.com/2009/11/21/debianda-ssh/</guid>
<description><![CDATA[Bir bilgisayara uzaktan ulasmak aslinda cok kolay. Yani evdeki bilgisayariniza isten, istekine tatil]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><!--more--><!--more--></p>
<p>Bir bilgisayara uzaktan ulasmak aslinda cok kolay. Yani evdeki bilgisayariniza isten, istekine tatilden, vs. Benim de bu sistemi kullanmaktaki amacim yazilarimin farkli bilgisayarlarda olusan gereksiz kopyalarini yok etmek ve mesela hangi yazinin nerdeki hali daha güncel probleminden kurtulmak. Bir nevi GoogleDocs&#8217;un bircok kisi arasinda gidip gelen dökümanlara getirdigi kolayligi ben kendime getiriyorum.</p>
<p>Öncelikle kisa tanimlarla baslayalim. Kullanacagimiz programin adi OpenSSH.</p>
<p><strong>I. Peki, OpenSSH nedir?</strong></p>
<p>SSH ya da Secure Shell ag (yerel veya internet) üzerinden birbirine bagli iki bilgisayar arasindaki veri alisverisi icin gerekli baglantiyi saglar.  Telnet veya Rlogin gibi ayni islevi gören programlardan daha güvenli sayilmasinin da nedeni, makineler arasinda degis tokus edilmis bilgileri sifrelenmis olarak saklamasidir.</p>
<p><a href="http://www.openssh.com/">OpenSSH</a>&#8216;de SSH&#8217;nin acik kaynak implementasyonudur ve OpenBSD&#8217;nin gelistiricileri tarafindan olusturulmustur. Her ne kadar daha sonra depodan yüklerden terminale &#8220;ssh&#8221; de yazacak olsak yüklenecek program aslinda OpenSSH.</p>
<p><strong>II. OpenSSH Kurulumu ve Kullanimi<br />
</strong></p>
<p><strong>$ sudo aptitude install ssh</strong></p>
<p>bu kadar. &#8220;ssh&#8221; üst paketi (meta package) client ve server icin gerekli her seyi bilgisayara yükledi. Bundan sonrasi onun nasil kullanilacagini bilinmesine kaliyor. Unutulmamasi gereken sey diger bilgisayarda da bu paketin yüklü olmasi gerekliligi.</p>
<p><strong>$ ssh uzak_pc&#8217;deki_kullanici_adi@sunucu_ismi </strong>(örn. $ ssh debiantr@debian-sid)</p>
<p>Teoride bu böyle ama ben kullanici ismi yerine ip numarasi kullaniyorum, yani</p>
<p><strong>$ ssh kullanici_adi@192.168.2.101</strong> gibi.</p>
<p>Yalniz burdaki sorun 192.168.2.101 gibi ip&#8217;lerin yerel aglarda bulunmasi ve yerel aglarda genellikle ip&#8217;lerin degismemesi. Eger yerel agda degilseniz ve uzaktaki bilgisayara internet üzerinden erismek istiyorsaniz o zaman bilgisayarin statik bir ip&#8217;ye ihtiyaci var. Bu da genelde görülen bir sey degil. Bilgisayarlarin ip adresleri bir sekilde hep degisiyor. Modem yeniden baslatiliyor, sorunlar cikiyor, vs. Bu yüzden DNS kullanmak mantikli yani basitce bir web adresi almak mantikli olan. <a href="http://www.dyndns.com/">DynDns.com</a> ip&#8217;lere bedava isim atayabileceginiz bir hizmet. DynDNS.com&#8217;da bir hesap olusturduktan sonra &#8220;Free Dynamic DNS&#8221; bölümünden kendinize istediginiz ismi alin: debiantr.homelinux.com, besiktas1903.dyndns.biz gibi. Ismi aldiktan sonra da simdiki ip adresinizi atayin, zaten otomatik olarak gösterecek adresinizi size. Sonra terminale dönüp:</p>
<p><strong>$ sudo aptitude install ddclient</strong></p>
<p>Bu uygulama degisen ip&#8217;nizi &#8220;web adresi&#8221;nizle güncel tutacak. Kurulum sirasinda karsiniza bir sihirbaz cikacak burda ilk soruda<br />
www.dyndns.com deyin, sonra hesabinizin kullanici adi ve sifresini girin,<br />
ip adresinizi bulmasi icin kullanilacak servise &#8220;yes&#8221;,<br />
web sitenizin ismini listeden bulmasina &#8220;yes&#8221;,<br />
PPP connect?&#8217;e &#8220;yes&#8221;,<br />
&#8220;ddclient as deamon&#8221;a &#8220;yes&#8221; deyin, bu sayede her bilgisayar acildiginda bu uygulama da baslayacak<br />
programin ne kadar zaman adresi kontrol etmesini istediginizi girin, ve son olarak listedeki adresi &#8220;space&#8221; (bosluk) tusu ile secin.</p>
<p>Arkasindan /etc/ddclient.conf dosyasini acin</p>
<p><strong>$ sudo gedit /etc/ddclient.conf</strong></p>
<blockquote><p>use=if, if=debiantr.homelinux.com</p></blockquote>
<p>satirini silip o satira sadece</p>
<blockquote><p>use=web</p></blockquote>
<p>(burdaki amac ddclient&#8217;in network kartinin yerel adresini kullanmasi yerine internet üzerinde yayimlanan adresinizi kullanmasini saglamak.)</p>
<p>yazin, kayedip cikin. Sonra <strong>$sudo ddclient</strong> dediginizde sorunsuz olarak adresiniz güncellenmis olmasi lazim.<br />
Son yapilmasi gereken seyde ulasilmak istenen bilgisayarin router&#8217;inin 22 numarali TCP ve UDP portlarini acmak. Cünkü ssh&#8217;nin varsayilan kullandigi port 22. &#8220;Port forwarding&#8221; yapmayi bilmiyorsaniz <a href="http://www.portforward.com/">Portforward.com</a>&#8216;a bir bakin.</p>
<p>&#8220;ddclient&#8221; disinda baska alternatifler de var. Bunlardan bir tanesi yine bir ip güncelleme programi ve debian depolarinda olan &#8220;inadyn&#8221;. Ancak bunun kullanimina burada deginmeyecegim. Baska bir alternatif ise, benim kullandigim, direkt router&#8217;in dns adresi kullanmasini saglamak. Her router bu servisi desteklemiyor, ancak destekleyen routerlarda sadece DynDns hesabinizin ismini, sifresini ve kullanmak istediginiz web adresini girip router&#8217;in ip&#8217;nizi güncellemesini saglayabilirsiniz.</p>
<p>Artik uzaktaki bir bilgisayara ya da sunucuya ulasmak icin yapmaniz gereken tek sey</p>
<p><strong>$ ssh kullanici_adi@aldiginiz_adres.dyndns.com</strong></p>
<p>ssh ayni zamanda opsiyonlar da aliyor bunlardan bir tanesi -X, eger uzaktaki alete</p>
<p><strong>$ ssh -X kullanici_adi@aldiginiz_adres.dyndns.com</strong></p>
<p>diye baglanirsaniz ve baglandiktan sonra terminalde <strong>$ iceweasel www.google.com</strong> yazarsaniz iceweasel uzaktaki bilgisayarda calisip Google&#8217;a baglanmis olacak ama siz onu kendi ekraninizda göreceksiniz. Ofis programlarini böyle calistirarak, islemi uzaktaki bilgisayarda yapmis olacak ama programin resmini ve yaptiklarinizi o an kullandiginiz bilgisayarda görmüs olacaksiniz.</p>
<p><strong>III. SSH&#8217;de Dosya Kopyalama</strong></p>
<p><strong>$ scp kullanici@pc.dyndns.com:/dosyanin/yeri/dosya uzaktaki@pc.dyndns.com:/kopyalanan/yer/dosya</strong></p>
<p>eger kopyalanacak sey klasörse &#8220;scp -r&#8221; yazin sonra ayni sekilde devam edin. &#8220;-r&#8221; takisi <em>recursive</em> anlamina gelmekte ve klasörün icindeki her dosya kopyalanana kadar islemin devam etmesini saglamaktadir.</p>
<p><strong>IV. SSH&#8217;de Sifreyi Kaldirmak<br />
</strong></p>
<p>Uzaktaki bilgisayariniza veya sunucuya baglandiginiz bilgisayar gercekten güvenliyse (örn. sizden baskasi kullanmiyorsa) iki de bir sifre yazimini ortadan kaldirabilirsiniz.  Yani iki bilgisayari birbilerine güvenebilir hale getirebilirisiniz. &#8220;ssh-keygen&#8221; burda kullanacagimiz program. Öncelikle</p>
<p><strong>$ ssh-keygen -t rsa</strong> (veya <strong>dsa</strong>) -t sifreleme (encryption) tipini belirten bir etiket ve rsa ile dsa sifreleme tiplerinden bazilari. Cikan ilk soru dosya ismi ona direkt bir sey yazmadan (ya da yazin siz bilirsiniz) enter&#8217;a basin sonra da gercekten güvenli oldugunu düsündügünüz bir sifre verin. Sonra yapilmasi gereken sey yaratilmis dosyanin uzaktaki bilgisayara/sunucuya kopyalanmasi. Varsayilan ayarlara göre:</p>
<p><strong>$ cd /home/kullanici_adi/.ssh</strong></p>
<p><strong> $ su</strong></p>
<p><strong># scp id_rsa/dsa.pub uzaktaki_bilgisayar:~/.ssh/authorized_keys</strong>, yalniz dikkat edilmesi gereken nokta önceden olusturulmus bir &#8220;authorized_keys&#8221; dosyasinin olmamasi, eger varsa bu sekilde önceden verilmis bilgiler silinir. Öyle bir durumda sifrelenmis dosya önce kendi uzantisiyla kopyalanir<strong>:<br />
# scp id_rsa/dsa.pub uzaktaki_bilgisayar:~/.ssh/bilgisayarin_ismi.pub</strong><strong><br />
# cat </strong><strong>bilgisayarin</strong><strong>_ismi.pub &#62;&#62; authorized_key</strong> bu gerekli bilgileri authrized_keys&#8217;in icine kopyalar.</p>
<p><strong>V. SSH Portunu Degistirmek</strong></p>
<p>Daha önce de söyledigim gibi 22 ssh&#8217;nin varsayilan portu. Bu yüzden bircok hacker(!) burdan bu portu acik olan bilgisayarlara girmeye calisiyor. Bir sunucuyu ya da pc&#8217;yi korumanin bircok yolu var ancak portu degistirmek de bence cok etkili bir yöntem, cünkü karsi tarafin kullandiginiz portu arayacagina 22&#8242;yi kullananlara yönelmesini saglayabilirsiniz.</p>
<p><strong>$ sudo nano /etc/ssh/sshd_config </strong>yaptiginizda karsiniza cikan sayfada asagidaki satirlari bulun</p>
<blockquote><p># What ports, IPs and protocols we listen for<br />
Port 22</p></blockquote>
<p>ve buraya istediginiz bir port numarasini (tabi baska bir programla cakismayacak) ekleyin. Örn. 1903.</p>
<blockquote><p># What ports, IPs and protocols we listen for<br />
Port 22<br />
Port 1903</p></blockquote>
<p>Burda Port 22&#8242;yi silmedim. Böylece ssh&#8217;yi iki portu dinleyecek sekilde ayarlamis oldum, eger 22&#8242;den direkt kurtulmak isterseniz dogrudan 22 yerinde 1903 yazin, kaydedin ve cikin.</p>
<p>Önceden belirttigim gibi 22 varsayilan port numarasi oldugu icin <strong>$ssh uzaktaki@pc</strong> seklinde yapilan denemelerde Port 22 kullanilmaya calisilacak, 1903&#8242;ten girmek icin -p takisinin kullanilmasi gerek. Bu taki hangi portun kullanilacagini gösteriyor.</p>
<p><strong>$ssh uzaktaki@pc -p 1903</strong> gibi.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Login SSH sin contraseña]]></title>
<link>http://byteinsanity.wordpress.com/2009/11/14/login-ssh-sin-contrasena/</link>
<pubDate>Sat, 14 Nov 2009 01:28:11 +0000</pubDate>
<dc:creator>darky00</dc:creator>
<guid>http://byteinsanity.wordpress.com/2009/11/14/login-ssh-sin-contrasena/</guid>
<description><![CDATA[Si tenemos un servidor remoto al que accedemos a través de SSH una forma mas fácil y segura de acced]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Si tenemos un servidor remoto al que accedemos a través de SSH una forma mas fácil y segura de acceder es utilizando claves RSA en vez de contraseñas.<br />
Las claves RSA son en realidad claves asimétricas por lo que se usan claves distintas para encriptar y desencriptar. Por esto cuando hablamos de claves RSA en realidad nos referimos a parejas de claves: una publica y otra privada.<br />
En nuestro caso empezaremos generando nuestras claves RSA, para esto ejecutaremos el comando:</p>
<pre class="brush: bash;">
$ ssh-keygen
</pre>
<p><a href="http://byteinsanity.wordpress.com/files/2009/11/ssh-keygen.png"><img class="aligncenter size-medium wp-image-229" title="ssh-keygen" src="http://byteinsanity.wordpress.com/files/2009/11/ssh-keygen.png?w=300" alt="ssh-keygen" width="300" height="180" /></a></p>
<p>Por defecto este comando nos genera claves de tipo RSA de 2048 bits. Respondiendo a todo con las opciones por defecto nos habrá generado 2 ficheros dentro de la carpeta <code>~/.shh</code>:</p>
<ul>
<li><strong>id_rsa</strong>: clave privada</li>
<li><strong>id_rsa.pub</strong>: clave publica</li>
</ul>
<p><a href="http://byteinsanity.wordpress.com/files/2009/11/carpeta_ssh.png"><img src="http://byteinsanity.wordpress.com/files/2009/11/carpeta_ssh.png?w=300" alt="carpeta_ssh" title="carpeta_ssh" width="300" height="74" class="aligncenter size-medium wp-image-231" /></a></p>
<p>El siguiente paso consiste en copiar la clave publica a la maquina remota a la que queremos poder conectar sin contraseña. La forma mas sencilla seria con el comando <code>scp</code> desde la maquina local:</p>
<pre class="brush: bash;">
$ scp ~/.ssh/id_rsa.pub usuarioremoto@maquinaremota:~
</pre>
<p>Ahora tenemos que acceder a la maquina remota y desde allí añadir nuestra clave publica al fichero <code>~/.ssh/authorized_keys</code>, para esto ejecutamos el siguiente comando en la maquina remota:</p>
<pre class="brush: bash;">
$ cat ~/id_rsa.pub &#62;&#62; ~/.ssh/authorized_keys
</pre>
<p>Con esto ya deberíamos ser capaces de acceder a la maquina remota desde nuestra maquina local sin introducir la contraseña, para comprobarlo ejecutamos:</p>
<pre class="brush: bash;">
$ ssh usuarioremoto@maquinaremota
</pre>
<p>Y ya deberíamos estar conectados en la maquina remota sin que nos pregunte la contraseña.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Protect Your Jailbroken iPhone from the "Worm"]]></title>
<link>http://grncndy.com/2009/11/10/protect-your-jailbroken-iphone/</link>
<pubDate>Wed, 11 Nov 2009 05:58:06 +0000</pubDate>
<dc:creator>RoryPiper</dc:creator>
<guid>http://grncndy.com/2009/11/10/protect-your-jailbroken-iphone/</guid>
<description><![CDATA[There has been talk in the tech news about an iPhone worm, that has made it&#8217;s way on to a numb]]></description>
<content:encoded><![CDATA[There has been talk in the tech news about an iPhone worm, that has made it&#8217;s way on to a numb]]></content:encoded>
</item>
<item>
<title><![CDATA[Un hacker crea un Worm per iPhone Jailbroken che si installa tramite SSH]]></title>
<link>http://gianmichele.wordpress.com/2009/11/09/un-hacker-crea-un-worm-per-iphone-jailbroken-che-si-installa-tramite-ssh/</link>
<pubDate>Mon, 09 Nov 2009 07:42:53 +0000</pubDate>
<dc:creator>gianmichele</dc:creator>
<guid>http://gianmichele.wordpress.com/2009/11/09/un-hacker-crea-un-worm-per-iphone-jailbroken-che-si-installa-tramite-ssh/</guid>
<description><![CDATA[C’era da aspettarselo: Dopo aver parlato dell’hacker olandese che era riuscito ad entrare negli iPho]]></description>
<content:encoded><![CDATA[C’era da aspettarselo: Dopo aver parlato dell’hacker olandese che era riuscito ad entrare negli iPho]]></content:encoded>
</item>
<item>
<title><![CDATA[iPhone Worm Rickrolls Jailbroken Devices]]></title>
<link>http://sbraidley.wordpress.com/2009/11/08/iphone-worm-rickrolls-jailbroken-devices/</link>
<pubDate>Sun, 08 Nov 2009 18:33:57 +0000</pubDate>
<dc:creator>sbraidley</dc:creator>
<guid>http://sbraidley.wordpress.com/2009/11/08/iphone-worm-rickrolls-jailbroken-devices/</guid>
<description><![CDATA[Over the past week there has been a lot of news over unsecured SSH on iPhone. First about the Dutch ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:left;">Over the past week there has been a lot of news over unsecured SSH on iPhone. First about the <a href="http://sbraidley.wordpress.com/2009/11/03/dutch-hacker-hacks-into-jailbroken-iphones/" target="_blank">Dutch hacker</a> who wasscanning the network for jailbroken users who had not changed their default SSH password. Now a hacker who goes by the name of &#8220;ikee&#8221; from Australia, created a worm that changes the home screen background to Rick Astley.</p>
<p>As I&#8217;m sure your aware by now this only affects users who have jailbroken their phone and installed OpenSSH, not just general users or who have jailbroken their device. If you have jailbroken your device and have got OpenSSH installed please <a href="http://sbraidley.wordpress.com/2009/11/03/how-to-change-your-iphones-ssh-password/" target="_blank">read this guide</a> on how to change your default password to ensure none of these worms or hacks will affect you.</p>
<p><img class="size-full wp-image-803 aligncenter" title="Rickroll iPhone Worm" src="http://sbraidley.wordpress.com/files/2009/11/img0122-1257646906.png" alt="Rickroll iPhone Worm" width="320" height="480" /></p>
<p>ikee says this is how the worm spread: &#8220;The code itself is set to firstly scan the 3G IP range the phone is on, then Optus/Vodafone/Telstra&#8217;s IP Ranges (I think the reason Optus got hit so hard is because the other 2 are NAT&#8217;d) then a random 20 IP ranges. I&#8217;m guessing a few phones hit a range that another vulnerable phone was on.&#8221;</p>
<p>Once one phone is infected it searches for phones with the default password and then begins the process again.</p>
<p><a href="http://sbraidley.wordpress.com/2009/11/03/dutch-hacker-hacks-into-jailbroken-iphones/" target="_blank">Dutch Hacker Hack’s Into Jailbroken iPhone’s</a></p>
<p><a href="http://sbraidley.wordpress.com/2009/11/03/how-to-change-your-iphones-ssh-password/" target="_blank">How To: Change Your iPhone’s SSH Password </a></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[OpenSSH 5.3 marca su décimo aniversario]]></title>
<link>http://tecnotaku.wordpress.com/2009/11/04/openssh-5-3-marca-su-decimo-aniversario/</link>
<pubDate>Wed, 04 Nov 2009 23:19:28 +0000</pubDate>
<dc:creator>zero2004</dc:creator>
<guid>http://tecnotaku.wordpress.com/2009/11/04/openssh-5-3-marca-su-decimo-aniversario/</guid>
<description><![CDATA[A pesar de que la nueva versión 5.3 de OpenSSH es un lanzamiento de actualización de rutina sin nuev]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><div>
<div id="main">
<div id="HOTWordsTxt">
<p>A pesar de que la nueva versión <strong>5.3</strong> de <a href="http://www.openssh.com/">OpenSSH</a> es un lanzamiento de  <a href="http://www.vivabsd.com.ar/soft/openssh-5.3#">actualización</a> de rutina sin  <a href="http://www.vivabsd.com.ar/soft/openssh-5.3#">nuevas</a> características, también celebra un  <a href="http://www.vivabsd.com.ar/soft/openssh-5.3#">importante</a> acontecimiento, como nos recuerda <a href="http://marc.info/?l=openbsd-announce&#38;m=125440990222595&#38;w=2">su anuncio oficial</a>.</p>
<p><strong>OpenSSH 5.3</strong> marca el décimo aniversario del proyecto OpenSSH, que comenzó modestamente como un <em>fork</em> de <a href="http://es.wikipedia.org/wiki/Ssh">SSH</a> (Secure Shell), el programa que implementa el protocolo del mismo nombre y sirve para acceder de manera segura a computadoras remotas. A pesar de que el código fuente del SSH original también está disponible, existen restricciones con respecto a su uso y distribución, por lo que OpenSSH, liberado bajo la misma licencia BSD de OpenBSD, es hoy el estándar de facto en todos los sistemas operativos de código abierto.</p>
<p>OpenSSH que fué presentado por el mismo Theo de Raadt en Octubre de 1999 junto con el lanzamiento OpenBSD 2.6.</p>
<p>Y no menos importante, el desarrollo de OpenSSH se mantiene gracias al trabajo de desinteresados programadores y <a href="http://www.openssh.com/donations.html">donaciones de sus mismos usuarios</a>, como tú.</p>
<p>Destacablemente, esta nueva versión 5.3 abandona el soporte para Windows 95, 98 y Me. La lista completa de este y el resto completo de los cambios puede leerse en sus <a href="http://openssh.com/txt/release-5.3">notas de lanzamiento</a></p>
</div>
</div>
</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[slackware networking.]]></title>
<link>http://oscartheduck.wordpress.com/2009/10/30/slackware-networking/</link>
<pubDate>Fri, 30 Oct 2009 05:04:05 +0000</pubDate>
<dc:creator>oscartheduck</dc:creator>
<guid>http://oscartheduck.wordpress.com/2009/10/30/slackware-networking/</guid>
<description><![CDATA[I got ifconfig running by installing the correct package with pkgtool and then being all awesome and]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I got ifconfig running by installing the correct package with pkgtool and then being all awesome and installing some other stuff and doing dhclient eth0.</p>
<p>Next, I used curl to grab the openssh tarball and was told my c compiler cannot create executables.</p>
<p>Awesome.</p>
<p>&#160;</p>
<div id="entry-content">Research led me to thinkk I needed to install glibc. I installed it. I can now compile openssh mostly. I don&#8217;t have openssl, though, so not all the way. More work on this tomorrow!</div>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Pro OpenSSH]]></title>
<link>http://esal.wordpress.com/2009/10/15/pro-openssh/</link>
<pubDate>Thu, 15 Oct 2009 08:34:29 +0000</pubDate>
<dc:creator>esal</dc:creator>
<guid>http://esal.wordpress.com/2009/10/15/pro-openssh/</guid>
<description><![CDATA[Pro OpenSSH by Michael Stahnke]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p style="text-align:center;"><strong>Pro OpenSSH</strong></p>
<p style="text-align:center;">by Michael Stahnke</p>
<p><img class="aligncenter size-full wp-image-1102" title="Apress.Pro.OpenSSH.Oct.2005" src="http://esal.wordpress.com/files/2009/10/apress-pro-openssh-oct-2005.jpg" alt="Apress.Pro.OpenSSH.Oct.2005" width="255" height="334" /></p>
<p style="text-align:center;"><span style="color:#0000ff;"><a href="http://www.ziddu.com/download/6777358/Apress.Pro.OpenSSH.Oct.2005.pdf.html"><img src="http://bse.depdiknas.go.id/images_gif/download.gif" border="0" alt="" width="91" height="31" /></a></span></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[iPod Tutorials - Accessing your iPod through OpenSSH]]></title>
<link>http://simflecks.wordpress.com/2009/10/07/ipod-tutorials-custom-text/</link>
<pubDate>Wed, 07 Oct 2009 00:49:14 +0000</pubDate>
<dc:creator>PsychoticWaffles</dc:creator>
<guid>http://simflecks.wordpress.com/2009/10/07/ipod-tutorials-custom-text/</guid>
<description><![CDATA[Difficulty: Easy What will this do?: It will allow you to access and modify hidden files on your iPo]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p><strong>Difficulty</strong>: Easy</p>
<p><strong>What will this do?</strong>: It will allow you to access and modify hidden files on your iPod and add themes. In other tutorials I will teach you to use OpenSSH to customize your iPod. Just like a computer, there are many system files that should not be messed with so <strong>do not delete files unless you know what you are doing</strong>.</p>
<p><strong>What you&#8217;ll need:</strong></p>
<p>Jailbroken iPod with Cydia or Icy</p>
<p>A 3G, EDGE, or WiFi connection on your iPod/iPhone</p>
<p><img class="alignleft size-full wp-image-320" title="IMG_0007.jpg" src="http://simflecks.wordpress.com/files/2009/10/img_0007-jpg.png" alt="IMG_0007.jpg" width="212" height="111" /></p>
<p>On your iPod or iPhone, open up Cydia/Icy and search for &#8220;OpenSSH&#8221; Download the app that says OpenSSH. Once the download is finished, go to Settings&#62;Wi-Fi and then tap the blue arrow next to the network you are using. Look for &#8220;IP Address&#8221;. The number will look like 192.xxx.x.x .Write the number down for later.</p>
<p>On your computer, download WinSCP, a FTP client which we will use to access your iPod. You can download it <a title="here" href="http://winscp.net/eng/download.php" target="_blank">here</a> .</p>
<p><img class="alignleft size-full wp-image-322" title="Untitled-1" src="http://simflecks.wordpress.com/files/2009/10/untitled-1.jpg" alt="Untitled-1" width="296" height="237" />Once installed, open up WinSCP. The host name will be the IP Address you wrote down earlier. the username will always be &#8220;root&#8221; and the password &#8220;alpine&#8221;. Press Login at the bottom. If you connect successfully you will see a screen open up with a folder named &#8220;Library&#8221;. If you could not connect, go back to your iPod and get your IP Address again and retry.</p>
<p>Once again, this is not very useful until you know how to use it. In later tutorials you will learn to edit system files and customize your iPod.</p>
<p>-Psychotic Waffles</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[23 Useful System Applications for Linux]]></title>
<link>http://ubuntugide.wordpress.com/2009/10/05/23-useful-system-applications-for-linux/</link>
<pubDate>Mon, 05 Oct 2009 18:20:39 +0000</pubDate>
<dc:creator>hardik123</dc:creator>
<guid>http://ubuntugide.wordpress.com/2009/10/05/23-useful-system-applications-for-linux/</guid>
<description><![CDATA[I earlier wrote about&#160; Top 5 BitTorrent Clients for Ubuntu Linux, 7 Awesome 3D Graphic Design A]]></description>
<content:encoded><![CDATA[I earlier wrote about&#160; Top 5 BitTorrent Clients for Ubuntu Linux, 7 Awesome 3D Graphic Design A]]></content:encoded>
</item>
<item>
<title><![CDATA[SSH Key Conversions: ssh-keygen (OpenSSH)]]></title>
<link>http://administratosphere.wordpress.com/2009/09/30/ssh-key-conversions-ssh-keygen-openssh/</link>
<pubDate>Wed, 30 Sep 2009 10:00:20 +0000</pubDate>
<dc:creator>ddouthitt</dc:creator>
<guid>http://administratosphere.wordpress.com/2009/09/30/ssh-key-conversions-ssh-keygen-openssh/</guid>
<description><![CDATA[I&#8217;ve discussed this before, but this time I&#8217;m focusing on another angle. When interactin]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>I&#8217;ve discussed this before, but this time I&#8217;m focusing on another angle.  When interacting with commercial SSH implementations (such as exists on OpenVMS and Tru64 implementations) it becomes useful to know how to convert your OpenSSH public keys to SSH2 format and vice versa.</p>
<p>These examples will assume that you are using OpenSSH and are on a UNIX system.  Note that these are <em>public</em> keys, not private keys.  All key types (DSA, RSA) should convert fine, but DSA is the stronger cryptographic algorithm.</p>
<p>One you have a public key in the appropriate format, you can add it to the authorized keys file (whatever that may be called).  This is normally found in ~/.ssh or ~/.ssh2 depending on the SSH version.</p>
<p>The OpenSSH utility ssh-keygen is what makes this happen.  This utility can do a <em>lot</em> more than just generate keys.  It can be used to change passphrases of encrypted keys; convert keys; generate public keys from private OpenSSH keys; and read and write keys to smartcards.</p>
<h3>Converting an SSH2 key to OpenSSH</h3>
<p>To use an SSH2 public key in OpenSSH, it needs to be converted.  Use the ssh-keygen utility in this manner:</p>
<p><code>ssh-keygen -e -f ~/.ssh/id_dsa_ssh2.pub &#62; ~.ssh/id_dsa.pub</code></p>
<h3>Converting an OpenSSH key to SSH2</h3>
<p>Using an OpenSSH public key in SSH2 requires a conversion; ssh-keygen can do this:</p>
<p><code>ssh-keygen -i -f ~/.ssh/id_dsa.pub &#62; ~/.ssh/id_dsa_ssh2.pub</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[How To: Disguise An App]]></title>
<link>http://sbraidley.wordpress.com/2009/09/06/how-to-disguise-an-app/</link>
<pubDate>Sun, 06 Sep 2009 14:58:19 +0000</pubDate>
<dc:creator>sbraidley</dc:creator>
<guid>http://sbraidley.wordpress.com/2009/09/06/how-to-disguise-an-app/</guid>
<description><![CDATA[So let&#8217;s say you have an App on your phone that you really need, but other people would keep g]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>So let&#8217;s say you have an App on your phone that you really need, but other people would keep going on it and you don&#8217;t<a href="http://sbraidley.wordpress.com/files/2009/09/disguise-app1.png"><img class="alignright size-full wp-image-739" title="Disguise App" src="http://sbraidley.wordpress.com/files/2009/09/disguise-app1.png" alt="Disguise App" width="58" height="59" /></a> really want them using it or seeing what it is. Well there is a simple way to disguise an app on your iPhone as anything you want.</p>
<p>Let&#8217;s say the app we want to hide is Cycorder.</p>
<p><strong>Getting Started</strong></p>
<p>First of all you have to SSH into your device and go to your Applications folder and open the relevant folder, in this case being Cycorder.app.</p>
<p>Once this is opened you will see the following files:<br />
Cycorder<br />
icon.png<br />
info.plist<br />
loading.png</p>
<p><strong>Note</strong>: these will vary on application, but the files needed will remain the same.</p>
<p>Now copy the files icon.png and info.plist to your computer.</p>
<p><em>Before editing either it&#8217;s a good idea to backup the files just in case you go wrong.</em></p>
<p><strong>Editing The Icon</strong></p>
<p>People using the iPhone will most likely use icons to refer to an app, so changing the icon of the app you wish to hide is the first thing to do.</p>
<p>First you need to get the icon from another app or you could make one yourself. Simply pressing the Home button and Sleep/Wake button will capture a screen shot of your home screen and you edit the icon to the correct size etc.</p>
<p><strong>Note</strong>: Always save the icon as a png image and make sure it&#8217;s transparent.</p>
<p><em>Downloading a free app off the App Store would maybe be a better idea for this as it gives you a quick and disposable way to disguise an app. However think about if people are likely to click on it, so find something boring.</em></p>
<p>Once you&#8217;ve edited and saved your new icon, save it as a png and copy it back to the app folder on the iPhone, replacing the original.</p>
<p><strong>Changing The Name</strong></p>
<p>The second way people will know which app is which, is via the name underneath the icon (which by now you will have changed).</p>
<p>To change the name simply open the plist either using a text editor or a dedicated plist editor such as <a href="http://www.ipodrobot.com/" target="_blank">iPodRobot&#8217;s plist editor</a>.</p>
<p>Look at the plist and find the tag called<br />
&#60;key&#62;CFBundleDisplayName&#60;/key&#62;</p>
<p>and change the value below it what you wish the app to appear as on the home screen.</p>
<p>Once this is done, save the plist and copy it back to your device, overwriting the old one.</p>
<p>Now re-spring or re-boot your device and the application will now be disguised.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[using PuTTY to login Ubuntu via OpenSSH]]></title>
<link>http://box02blog.wordpress.com/2009/09/05/using-putty-to-login-ubuntu-via-openssh/</link>
<pubDate>Sat, 05 Sep 2009 15:46:52 +0000</pubDate>
<dc:creator>box02</dc:creator>
<guid>http://box02blog.wordpress.com/2009/09/05/using-putty-to-login-ubuntu-via-openssh/</guid>
<description><![CDATA[Windows XP ကေန PuTTY အသံုးျပုျပီး Ubuntu စက္ထဲကို login ဝင္ရတာ လြယ္ကူပါတယ္။ ဒီေနရာမွာ က်ေနာှ ဗမာလိုေ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Windows XP ကေန PuTTY အသံုးျပုျပီး Ubuntu စက္ထဲကို login ဝင္ရတာ လြယ္ကူပါတယ္။ ဒီေနရာမွာ က်ေနာှ ဗမာလိုေလး အျကမ္းေလးေရးေပးမယ္၊ ျပည့္ျပည့္စံုစံုကိုေတာ့ အကိုးအကားလင့္မွာျကည့္ပါ။ ပထမဦးစြာ <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY Download Page</a> ကေန putty.exe နွင့္ puttygen.exe နွစ္ခုကို Windows XP ေပါှမွာ အရင္ဆံုး download လုပ္ထားနွင့္ပါ။ ျပီးရင္ Ubuntu စက္မွာ openssh-server နွင့္ openssh-client နွစ္ခုကို install လုပ္ေပးပါ။</p>
<blockquote><p>$ sudo apt-get install openssh-server openssh-client</p></blockquote>
<p>ျပီးရင္ Terminal မွာပဲ ssh-keygen လို့ရိုက္ေပးျပီး ssh-keys ေတြကို ထုတ္ေပးပါ။ passphase ကိုေမးတဲ့အခါ ကိုယ့္ရဲ့ လွို့ဝွက္ကုတ္တစ္ခုခုကိုရိုက္ထည့္ေပးျပီး အဲဒီ password ကိုမွတ္သားထားပါ။ အဲလိုထုတ္ေပးလိုက္တဲ့ id_rsa နဲ့ id_rsa.pub keys ေတြဟာ ~/.ssh ေအာက္မွာရွိေနမွာပါ။ အဲဒီ ကီးေတြကို copy ကူးယူျပီး Windows XP စက္ဆီသို့ယူလာပါ။</p>
<blockquote><p>$ ssh-keygen<br />
$ cd ~/.ssh<br />
$ ls</p></blockquote>
<p>ေအာက္က ေဖာှျပပါပံုေတြကေတာ့ Ubuntu ေပါှမွာ လုပ္ေဆာင္ေပးရသမ်ွပါ။</p>
<div id="attachment_306" class="wp-caption alignnone" style="width: 490px"><img src="http://box02blog.wordpress.com/files/2009/09/01.png" alt="Installing openssh-server &#38; openssh-client" title="01" width="480" height="336" class="size-full wp-image-306" /><p class="wp-caption-text">Installing openssh-server &#38; openssh-client</p></div>
<div id="attachment_307" class="wp-caption alignnone" style="width: 490px"><img src="http://box02blog.wordpress.com/files/2009/09/02.png" alt="generating id_rsa keys and list" title="02" width="480" height="360" class="size-full wp-image-307" /><p class="wp-caption-text">generating id_rsa keys and list</p></div>
<p>က်ေနာှတို့ အခု Windows ေပါှမွာလုပ္စရာရွိတာေတြလုပ္ေတာ့မွာပါ။ PuTTy က OpenSSH ကထုတ္ေပးလိုက္တဲ့ ကီးေတြကို တိုက္ရိုက္အသံုးျပုလို့ မရပါဘူး။ အဲဒါေျကာင့္ id_rsa ကီးကို id_rsa.ppk ကီးျဖစ္လာေအာင္ puttygen.exe အသံုးျပုျပီးေတာ့ convert လုပ္ေပးရမွာျဖစ္ပါတယ္။ ပထမတုန္းက က်ေနာှတို့ download လုပ္ထားျပီးသားျဖစ္တဲ့ puttygen.exe ကို double-click နွိပ္ေပးျပီး ဖြင့္ပါ။</p>
<div id="attachment_308" class="wp-caption alignnone" style="width: 490px"><img src="http://box02blog.wordpress.com/files/2009/09/03.png" alt="open puttygen.exe and load private key" title="03" width="480" height="464" class="size-full wp-image-308" /><p class="wp-caption-text">open puttygen.exe and load private key</p></div>
<p>ပံုထဲမွာျမင္ရတဲ့အတိုင္း File &#62;&#62; Load private key ကိုနွိပ္ေပးပါက ဖိုင္ေတာင္းခံတဲ့ Dialog Window ေလးေပါှလာပါမယ္။ အဲဒီအခါမွာ Ubuntu စက္ဘက္ကေန ကူးယူလာတဲ့ id_rsa ကိးကို ဖြင့္ေပးပါ။ အဲလိုဖြင့္တာနဲ့ ကိုယ့္ရဲ့ passphase ကိုေတာင္းခံပါလိမ့္မယ္။ ကီးထုတ္စဉ္က သြင္းေပးခဲ့တဲ့ password ေလးကို ရိုက္သြင္းေပးတဲ့အခါ ကိုယ့္ရဲ့ id_rsa ကီးကပြင့္ပါမွာပါ။ တဆက္တည္း Save private key ဆိုတဲ့ button ကိုနွိပ္ေပးျပီး တစ္ေနရာမွာ သိမ္းလိုက္ပါ။ အဲဒါဆိုရင္ id_rsa.ppk ကီးအေနနဲ့ saved လိုက္တာေတြ့ရမယ္။</p>
<div id="attachment_309" class="wp-caption alignnone" style="width: 490px"><img src="http://box02blog.wordpress.com/files/2009/09/04.png" alt="converting private key and save it" title="04" width="480" height="463" class="size-full wp-image-309" /><p class="wp-caption-text">converting private key and save it</p></div>
<p>putty.exe ကိုဖြင့္ပါ။ PuTTY Configuration Window ေပါှလာပါမယ္။</p>
<div id="attachment_310" class="wp-caption alignnone" style="width: 467px"><img src="http://box02blog.wordpress.com/files/2009/09/05.png" alt="Connection &#62;&#62; SHH &#62;&#62; Auth" title="05" width="457" height="436" class="size-full wp-image-310" /><p class="wp-caption-text">Connection &#62;&#62; SHH &#62;&#62; Auth</p></div>
<p>ဘယ္ဘက္မွာျမင္ရတဲ့ Connection &#62;&#62; SSH &#62;&#62; Auth ကိုနွိပ္ရင္ အေပါှကပံုအတိုင္းျမင္ရမွာပါ။ အဲဒီမွာ Browse ဆိုတဲ့ button နွိပ္ပါ။ ကိုယ့္ရဲ့ id_rsa.ppk ကီးရွိရာကိုသြားျပီး ဖြင့္ေပးလိုက္တဲ့အခါ အဲဒီကီးမွာ သိမ္းထားတဲ့ ကိုယ့္ Ubuntu စက္ရဲ့အခ်က္အလက္ေတြကိုအသံုးျပုျပီး Ubuntu ကို login စလုပ္ပါမယ္။ ကိုယ့္ရဲ့ login name နွင့္ password ကိုရိုက္ထည့္ေပးလိုက္ရင္ ေအာက္ကပံုအတိုင္း login ဝင္သြားပါမယ္။</p>
<div id="attachment_311" class="wp-caption alignnone" style="width: 490px"><img src="http://box02blog.wordpress.com/files/2009/09/06.png" alt="logging into Ubuntu" title="06" width="480" height="298" class="size-full wp-image-311" /><p class="wp-caption-text">logging into Ubuntu</p></div>
<p>ျပီးရင္ ပံုမွန္ Linux ေပါှမွာအလုပ္လုပ္တဲ့အတိုင္း လုပ္နိုင္ပါျပီ။</p>
<div id="attachment_312" class="wp-caption alignnone" style="width: 490px"><img src="http://box02blog.wordpress.com/files/2009/09/07.png" alt="like working in Terminal on Ubuntu" title="07" width="480" height="299" class="size-full wp-image-312" /><p class="wp-caption-text">like working in Terminal on Ubuntu</p></div>
<p>ပိုျပီးအေသးစိတ္သိခ်င္ရင္ေတာ့ <a href="http://linux-sxs.org/networking/openssh.putty.html">အကိုးအကား</a> ကိုဖြင့္ဖတ္နိုင္ပါတယ္။</p>
<p>Enjoy it! </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[[ssh] SSH login to remote server w/o password]]></title>
<link>http://nixtricks.wordpress.com/2009/08/29/ssh-ssh-login-to-remote-server-wo-password/</link>
<pubDate>Sat, 29 Aug 2009 07:23:49 +0000</pubDate>
<dc:creator>kousik</dc:creator>
<guid>http://nixtricks.wordpress.com/2009/08/29/ssh-ssh-login-to-remote-server-wo-password/</guid>
<description><![CDATA[If you&#8217;re using OpenSSH to connect to remote Linux machine, then this may come as bliss. This ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>If you&#8217;re using OpenSSH  to connect to remote Linux machine, then this may come as bliss. This is based on public key authentication &#8212; (1) create a key-pair &#8212; a private and a public one, and then  (2) save the public key in the authorized_keys file in the remote machine. Next time when you login using SSH to the remote server from the local machine where you have saved the private key, you won&#8217;t have to enter the password! Isn&#8217;t it cool? OK, now let&#8217;s get down to business, shall we?</p>
<p><strong>Step 0: </strong>Make sure the RSA and public key authentication methods are enabled (which are in general enabled by default) in <code>/etc/ssh/sshd_config</code> on the remote machine &#8212; it should look like the following:</p>
<blockquote><p><code> RSAAuthentication yes<br />
PubkeyAuthentication yes </code></p></blockquote>
<p>and then reload the configuration if you had to modify it</p>
<div style="border:1px dotted black;padding:1em;"><code>$ sudo /etc/init.d/ssh reload</code></div>
<p>You need the administrative rights for the above.</p>
<p><span style="color:#ffffff;">.</span></p>
<p><strong>Step 1: </strong>Use the command <code> ssh-keygen </code> to create the key pair:</p>
<div style="border:1px dotted black;padding:1em;"><code> $ ssh-keygen -t rsa </code></div>
<p>Save the key to the default location, viz. <code>~/.ssh/id_rsa</code>. When you hit enter, it&#8217;ll ask you for a passphrase &#8212; leave it empty (see warning below). You need to hit enter once more to confirm it.</p>
<p>Now if you go to <code>~/.ssh</code> directory, you&#8217;ll see that two new files are created: <code>id_rsa</code> (your private key &#8212; don&#8217;t lose it or give it to somebody else!) and the public key, <code>id_rsa.pub</code>.</p>
<p><span style="color:#ffffff;">.</span></p>
<p><strong>Step 2: </strong>We need to append the public key to the  <code>authorized_keys</code> file or save the key as a new file with the name <code>authorized_keysX</code> (where X is a number to avoid conflict) in <code>~/.ssh</code> directory on the remote machine. We&#8217;ll use the <a href="http://nixtricks.wordpress.com/2009/08/28/scp-view-remotely/">fancy vi trick</a> that we saw earlier:</p>
<div style="border:1px dotted black;padding:1em;"><code>$ vi scp://remoteuser@remote.machine.com//home/remoteuser/.ssh/authorized_keys</code></div>
<p>Enter your password when you&#8217;re asked. Once the vi window opens up, go to the end of the file (hit Shift+G) and then append the public key file</p>
<div style="border:1px dotted black;padding:1em;"><code>:r id_rsa.pub</code></div>
<p>assuming you&#8217;re still in the <code>~/.ssh</code> directory on the local machine. Next, save the file and exit.</p>
<p><strong>Note:</strong> you may also use</p>
<div style="border:1px dotted black;padding:1em;"><code>$ ssh-copy-id remoteuser@remote.machine.com</code></div>
<p>to automatically put the ID in the desired place.</p>
<p>Now you are all set to login to the remote machine using ssh without a password!</p>
<p><span style="color:#ffffff;">.</span></p>
<p><strong>WARNING: The big security concern and a work-around</strong> (still being lazy!)</p>
<p><strong> </strong>The ease of this method has a very strong downside: if the local machine is compromised the attacker will waltz  onto the remote machine.  A way out of this is to protect your private key with a non-empty passphrase. That also means every time the machine requires access to the private key (i.e., every time you login to the remote machine where you saved your public key), you have to enter the passphrase. What&#8217;s the use of this hoopla then &#8212; you may ask.  Well, when there is a wish there is a way too &#8212; by committing the key to the  local system&#8217;s `memory&#8217; so that you type the passphrase once and only once for the whole session.</p>
<p>OK. Let&#8217;s first change password to a non-empty string, shall we?</p>
<div style="border:1px dotted black;padding:1em;"><code>$ ssh-keygen -p</code></div>
<p>It&#8217;ll ask for the location of the key. Then you&#8217;ll have to enter a passphrase and verify it (don&#8217;t leave this empty this time).</p>
<p>Next make the system remember your key:</p>
<div style="border:1px dotted black;padding:1em;"><code>$ ssh-add</code></div>
<p>It&#8217;ll ask for the passphrase (in order to &#8216;unlock&#8217; your private key) and then for the whole session you won&#8217;t need any password/passphrase to login to the remote machine.</p>
<p><span style="color:#ffffff;">.</span></p>
<p><strong>READ MORE: </strong><a href="http://unmaintainable.wordpress.com/2008/01/01/ssh-public-key-auth/">here</a> and <a href="http://kimmo.suominen.com/docs/ssh/" target="_blank">here</a>.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Archlinux and 64 Megabytes of RAM (Update!)]]></title>
<link>http://thoughtyblog.wordpress.com/2009/08/26/archlinux-and-64-megabytes-of-ram/</link>
<pubDate>Wed, 26 Aug 2009 19:42:44 +0000</pubDate>
<dc:creator>thoughtyblog</dc:creator>
<guid>http://thoughtyblog.wordpress.com/2009/08/26/archlinux-and-64-megabytes-of-ram/</guid>
<description><![CDATA[Recently I decided to get out the old GTA2 Laptop again. Why GTA2? Because that was its killer appli]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Recently I decided to get out the old <em>GTA2 Laptop</em> again. Why GTA2? Because that was its killer application, as it only features a 600 Mhz Intel Celeron, some on-board graphics card and 64 MB of RAM. This game runs pretty well while being very much fun, especially the LAN mode is just awesome. If you never played GTA2 yet, here&#8217;s a <a href="http://www.youtube.com/watch?v=IDZBgVa5DoY" target="_blank">multiplayer gameplay video</a> I just googled up. Also the game became freeware, so if you like it <a href="http://www.rockstargames.com/classics/" target="_blank">download it</a>!</p>
<p>But let&#8217;s get to the point of the article. I have always played with the thought of installing (any) Linux on this notebook, until yesterday it was running a very <a title="Allows you to make XP less bloated" href="http://www.nliteos.com/" target="_blank">nlited</a> Windows XP.  So I finally decided to throw that off the about 5 GB harddrive and give arch a shot. Why did I choose Arch and not lets say Debian? The later one compiles x86 packages for i386, but archlinux compiles to i686, which is less backward compatible, but a bit faster. Plus the other reasons why I just love archlinux &#8211; simple configuration, pacman and yaourt, aur <a href="http://wiki.archlinux.org/index.php/Arch_Linux" target="_blank">and so on</a>.</p>
<p>While downloading the lastest snapshot for i686, I browsed a bit around and came across <a href="http://bbs.archlinux.org/viewtopic.php?id=50838" target="_blank">this thread</a> from which I used their suggestions to add <em>lowmem</em> to the kernel line as well as setting <em>ramdisk</em> to 20% (also kernel line in grub). Then /arch/setup worked out pretty good, just like any installation. It was a bit slower of course, but I didn&#8217;t expect it to behave different.</p>
<p>Suprisingly WLAN actually worked with ndiswrapper, I was not sure about that at all. This laptop has a T-Com Sinus 154 Card, I took the windows driver from the installation CD. The next not-so-clear-thing was setting up xorg without nvidia (I&#8217;m used to do it with that), but after I found <a href="http://wiki.archlinux.org/index.php/Xorg#hwd" target="_blank">hwd</a>, it worked out fine.</p>
<div id="attachment_771" class="wp-caption aligncenter" style="width: 310px"><a href="http://thoughtyblog.wordpress.com/files/2009/08/laptop_opera-snapshot.png"><img class="size-medium wp-image-771" title="laptop_opera-snapshot" src="http://thoughtyblog.wordpress.com/files/2009/08/laptop_opera-snapshot.png?w=300" alt="laptop_opera-snapshot" width="300" height="225" /></a><p class="wp-caption-text">lxpanel displays the CPU usage at the bottom right corner</p></div>
<p style="text-align:center;">
<p>To get  decent performance, only lightweight and fast software would work. As WM I chose <a href="http://wiki.archlinux.org/index.php/Openbox" target="_blank">openbox</a> with the <a href="http://www.gnomefiles.org/app.php/LXPanel" target="_blank">lxpanel</a>. The browser with the best performance after text browsers is propably <a href="http://www.dillo.org/" target="_blank">dillo</a>. But dillo can&#8217;t even display common websites like wikipedia and google right, because its CSS implementation has just started. Even worse, javascript does not work at all, so sadly half the web does not work. If you just want to do some <em>quick</em> research, it is enough though, so I kept it installed. Firefox was slow as hell, just the experience I had using it with windows XP. Because of that I tried some alternative browsers. <a href="http://code.google.com/chromium/" target="_blank">Chromium</a> (the opensource project behind Google Chrome without the spyware) just segfaulted, so I tried the closed source <a href="http://www.opera.com/" target="_blank">Opera</a> (10). Yaourt -Ss opera lead me to opera-snapshot from the <a href="http://wiki.archlinux.org/index.php/Yaourt#Easy_Install" target="_blank">archlinuxfr</a> repository, which was actually pretty fast. In every other case, it would have been Firefox. But as this was just a matter of speed, Opera took the cake.</p>
<div id="attachment_774" class="wp-caption aligncenter" style="width: 310px"><a href="http://thoughtyblog.wordpress.com/files/2009/08/laptop_qmpdclient.png"><img class="size-medium wp-image-774" title="laptop_qmpdclient" src="http://thoughtyblog.wordpress.com/files/2009/08/laptop_qmpdclient.png?w=300" alt="QMPDClient open" width="300" height="225" /></a><p class="wp-caption-text">QMPDClient open</p></div>
<p>Other software I installed is <a title="music player daemon" href="http://wiki.archlinux.org/index.php/Mpd" target="_blank">mpd</a>, mpc and for the first time <a href="http://bitcheese.net/wiki/QMPDClient" target="_blank">QMPDClient</a> as GUI. Mpd is very lightweight and can be used without a X server, just like unix tools should behave. I chose the said graphical user interface, because it is not written in script-languages like python or perl, but in c++ which not only has less dependencies, but also brings more speed. In fact, I have nothing python or perl related installed on this machine.</p>
<div id="attachment_776" class="wp-caption aligncenter" style="width: 310px"><a href="http://thoughtyblog.wordpress.com/files/2009/08/amarok-laptop.png"><img class="size-medium wp-image-776" title="amarok-&#62;laptop" src="http://thoughtyblog.wordpress.com/files/2009/08/amarok-laptop.png?w=300" alt="desktop pc: copying music from within amarok to my laptop" width="300" height="240" /></a><p class="wp-caption-text">desktop pc: copying music from within amarok to my laptop</p></div>
<p>Another pick was <a href="http://wiki.archlinux.org/index.php/SSH#OpenSSH" target="_blank">OpenSSH</a> and <a href="http://wiki.archlinux.org/index.php/SSH#Mounting_a_Remote_Filesystem_with_SSHFS" target="_blank">SSHFS</a> over <a href="http://wiki.archlinux.org/index.php/Nfs" target="_blank">nfs</a> and <a href="http://wiki.archlinux.org/index.php/Samba" target="_blank">samba</a>. Why? Because nfs did not work at all and samba plus its dependencies was about 100 megabytes. When I mounted my laptop&#8217;s music folder on my desktop computer, I was able to fill it from within amarok via drag and drop, just like any mp3 player, which is quite useful <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Other applications I installed and tested were pidgin, codeblocks and lbreakout2. For pidgin, I think <a title="Turns an IRC client into a multimessenger" href="http://www.bitlbee.org/main.php/news.r.html" target="_blank">BitlBee</a> plus something like <a href="http://xchat.org/" target="_blank">xchat</a> would be the better choice, but I have not tried that yet. It was usable though, as well as codeblocks and lbreakout2 were. What I did not try yet is GTA2 (with wine), but I will likely do that.</p>
<p style="text-align:center;"><div id="attachment_778" class="wp-caption aligncenter" style="width: 310px"><a href="http://thoughtyblog.wordpress.com/files/2009/08/laptop_clean.png"><img class="size-medium wp-image-778 " title="laptop_clean" src="http://thoughtyblog.wordpress.com/files/2009/08/laptop_clean.png?w=300" alt="The panel appears bigger on the thumbnail than it is" width="300" height="225" /></a><p class="wp-caption-text">No desktop icons, no wallpaper</p></div></p>
<p>Software I did not install on purpose: A program that displays a wallpaper and/or desktop icons and a file manager. These are just too wasteful for that little system.</p>
<p><strong>Update:</strong> As expected, GTA2 is not playable at all. The <a title="windows compatibility layer for linux and others" href="http://winehq.org" target="_blank">wine-layer</a> is just slowing it down too much, and while <a title="playstation 1 emulator" href="http://www.epsxe.com/" target="_blank">epsxe</a> offers more tweaking, it is not faster. On the other hand, I&#8217;ve got <a title="It required me to hack in the readme.txt and rc script from the ordinary package, though" href="http://aur.archlinux.org/packages.php?ID=24758" target="_blank">bitlbee with the otr patch</a> running. Bitlbee is a fake IRC server which displays contacts from other IM networks that all IRC programs can connect to. Since I found out that Opera has an integrated IRC client, I don&#8217;t even need another program and so I removed pidgin.</p>
<p>Furthermore I did not mention  the usage of the <a href="http://xiph.org/vorbis/" target="_blank">Vorbis</a> audio codec yet, which is better known by its file extension ogg. Because they are so small, you can easily fit much music on such a tiny harddrive. Oh and I compile most aur packages from my arch32 environment on my desktop pc. That saves much time.</p>
<p>So in conclusion there&#8217;s pretty much you can do with a low-end machine like this. The most exciting feature for me is ssh and ssh-fs. GTA2 does not work anymore, but I have played the single player mode almost through anyway. <a href="http://lgames.sourceforge.net/index.php?project=LBreakout2" target="_blank">LBreakout2</a> works fine and without making the cooler get very loud, like GTA2 used to. Plus now I just have a fully running linux with all its nice CL tools <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[scp, transmitiendo información de forma segura]]></title>
<link>http://linuxcode.wordpress.com/2009/08/25/scp-transmitiendo-informacion-de-forma-segura/</link>
<pubDate>Tue, 25 Aug 2009 00:26:23 +0000</pubDate>
<dc:creator>illbnet</dc:creator>
<guid>http://linuxcode.wordpress.com/2009/08/25/scp-transmitiendo-informacion-de-forma-segura/</guid>
<description><![CDATA[Hace unos días explicábamos como instalar en nuestro equipo OpenSSH. Hoy vamos a ver cómo utilizar s]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Hace unos días explicábamos <a href="http://linuxcode.wordpress.com/2009/08/05/iniciacion-a-ssh/">como instalar en nuestro equipo OpenSSH</a>. Hoy vamos a ver cómo utilizar scp.</p>
<h2>¿Qué es scp?<img class="alignright size-full wp-image-12" title="icono-ventanas" src="http://linuxcode.wordpress.com/files/2009/08/ico-ventanas.jpg" alt="icono-ventanas" width="128" height="128" /></h2>
<p><strong>Wikipedia</strong></p>
<blockquote><p><strong>Secure Copy</strong> o scp es un medio de transferencia segura de archivos entre un host local y otro remoto, o entre dos hosts remotos.</p>
<p><span style="background-color:#ffffff;">A diferencia de rcp, scp permite<strong> encriptar los datos</strong> durante su transferencia, evitando así que cualquier usuario pueda extraer información de nuestro paquete de datos.</span></p></blockquote>
<h2>¿Cómo empezar a usarlo?</h2>
<p>Un vistazo rápido a la página de ayuda sobre scp nos muestra su sintáxis:</p>
<blockquote><p><strong>scp</strong> [<strong>-1246BCpqrv</strong>] [<strong>-c</strong> cipher] [<strong>-F</strong> ssh_config] [<strong>-i</strong> identity_file] [<strong>-l</strong> limit] [<strong>-o</strong> ssh_option] [<strong>-P</strong> port] [<strong>-S</strong> program] [<br />
[user@]host1:]file1 [...] [                                      [user@]host2:]file2</p></blockquote>
<p>Para comprender la funcionalidad de cada opción, puedes visitar la <a href="http://linux.die.net/man/1/scp">entrada del manual para scp</a>.</p>
<p>Expongamos unos ejemplos que nos permitan familiarizarnos:</p>
<ul>
<li><span style="background-color:#ffffff;">Copiar un archivo de una máquina remota a una local</span>
<ul>
<li><span style="background-color:#ffffff;"><code>scp username@remotehost:file.txt /local/directory</code></span></li>
</ul>
</li>
<li><span style="background-color:#ffffff;">Copiar un archivo de una máquina local a una remota</span>
<ul>
<li><span style="background-color:#ffffff;"><code>scp file.txt username@remotehost:/remote/directory<br />
</code></span></li>
</ul>
</li>
<li><span style="background-color:#ffffff;">Copiar un archivo de una máquina remota a otra remota</span>
<ul>
<li><span style="background-color:#ffffff;"><code>scp username@remotehost1:/remote/directory/file.txt \<br />
username@remotehost2:/remote/directory</code></span></li>
</ul>
</li>
<li><span style="background-color:#ffffff;">Copiar varios archivos de tu máquina local al directorio home de tu máquina remota</span>
<ul>
<li><span style="background-color:#ffffff;"><code>scp file1.txt file2.txt username@remotehost:~</code></span></li>
</ul>
</li>
<li><span style="background-color:#ffffff;">Copiar múltiples archivos de una máquina remota a tu directorio actual en la máquina local</span>
<ul>
<li><span style="background-color:#ffffff;"><code>scp username@remotehost:/remote/directory/\{a,b,c\} .</code></span></li>
<li><span style="background-color:#ffffff;"><code>scp username@remotehost:/remote/directory/\{file1.txt,file2.txt\} .</code></span></li>
</ul>
</li>
</ul>
<p>También puedes copiar directorios completos utilizando la opción<strong> -r</strong> para ello:</p>
<ul>
<li><span style="background-color:#ffffff;">Copiar el directorio &#8216;etc&#8217; de una máquina local a una remota</span>
<ul>
<li><span style="background-color:#ffffff;"><code>scp -r /etc username@remotehost:/remote/directory</code></span></li>
</ul>
</li>
</ul>
<p>Los casos que hemos explicado para los ficheros también son aplicables en directorios.</p>
<h2>Mejorando el rendimiento de scp</h2>
<p>Si has echado un vistazo a las opciones que incluye scp habrás advertido <strong>-c</strong> y <strong>-C</strong>. En caso de no ser así, damos una breve explicación:</p>
<ul>
<li><span style="background-color:#ffffff;"><strong>-c cypher_spec</strong></span></li>
</ul>
<p style="padding-left:30px;">Nos permite elegir la técnica de cifrado a usar para encriptar la transferencia de datos. Si estamos usando la versión 1 del protocolo, podemos usar: &#8216;<a href="http://es.wikipedia.org/wiki/Triple_DES">3des</a>&#8216;, &#8216;<a href="http://es.wikipedia.org/wiki/Blowfish">blowfish</a>&#8216; y &#8216;<a href="http://es.wikipedia.org/wiki/Data_Encryption_Standard">des</a>&#8216;. <strong>3Des</strong> (<em>triple-des</em>) es una triple encriptación-desencriptación que usa 3 llaves diferentes. <strong>Blowfish</strong> es un codificador de bloques simétricos, muy seguro y bastante más rápido que 3des. <strong>Des</strong> únicamente está soportado en aquellos clientes ssh que implemente la versión 1 del protocolo y no disponen de soporte para el cifrado 3des.-</p>
<p style="padding-left:30px;">Para la versión 2 del protocolo, tenemos: &#8216;<em>3des-cbc</em>&#8216;, &#8216;<em>aes128-cbc</em>&#8216;, &#8216;<em>aes192-cbc</em>&#8216;, &#8216;<em>aes256-cbc</em>&#8216;, &#8216;<em>aes128-ctr</em>&#8216;, &#8216;<em>aes192-ctr</em>&#8216;, &#8216;<em>aes256-ctr</em>&#8216;, &#8216;<em>arcfour128</em>&#8216;, &#8216;<em>arcfour256</em>&#8216;, &#8216;<em>arcfour</em>&#8216;, &#8216;<em>blowfish-cbc</em>&#8216; y &#8216;<em>cast128-cbc</em>&#8216;.</p>
<ul>
<li><span style="background-color:#ffffff;"><strong>-C</strong></span></li>
</ul>
<p style="padding-left:30px;">Habilita la compresión de los datos.</p>
<p>Por defecto <strong>scp usa 3des</strong> para encriptar los datos, si quieres puedes aumentar la velocidad de transferencia utilizando blowfish en su lugar. Esto puedes hacerlo especificando la opción <strong>-c blowfish</strong></p>
<p><code>scp -c blowfish local_file username@remote_host:remote_dir<br />
</code><br />
También puedes comprimir los datos que vayas a enviar, en caso de disponer de una conexión lenta.</p>
<p><code>scp -c blowfish -C local_file username@remote_host:remote_dir</code></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Modo comando para iPhone/iPod touch (iSSH)]]></title>
<link>http://thezeroxblog.wordpress.com/2009/08/16/modo-comando-para-iphoneipod-touch-issh/</link>
<pubDate>Sun, 16 Aug 2009 16:20:41 +0000</pubDate>
<dc:creator>ZeRoX</dc:creator>
<guid>http://thezeroxblog.wordpress.com/2009/08/16/modo-comando-para-iphoneipod-touch-issh/</guid>
<description><![CDATA[Pues si, por fin me hice con una máquina de estas y como es normal viniendo de mi desde el minuto 0 ]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Pues si, por fin me hice con una máquina de estas y como es normal viniendo de mi desde el minuto 0 en el que el iPhone cayo en mis manos empecé a trastear con él y a investigar.</p>
<p>Hay muchísima documentación online sobre el iPhone, pero me he dado cuenta que no hay tanta de como lograr acceder a una shell del iPhone, ojo! no estoy hablando de una emulación de una shell, estoy hablando de una consola en condiciones, <span style="text-decoration:underline;">el sistema operativo del iPhone no deja de ser un UNIX</span> por lo que lo único que haremos será añadirle una consola de comandos.</p>
<p>Lo primero de todo tenemos que habilitar al iPhone alguna manera de poder acceder a él por modo comando. Algunos ya sabrán lo que es SSH, a los que no, tienen una <a href="http://es.wikipedia.org/wiki/Secure_Shell" target="_blank">muy buena explicación en Wikipedia</a>. Al igual que tampoco me voy a poner a explicar como instalar <strong>OpenSSH</strong> en el iPhone (este es el programa que tendrá que tener instalado el iPhone para lograr que este sea un servidor de SSH para posteriormente conectarnos a él), como dije antes hay <a href="http://www.google.es/search?hl=es&#38;client=firefox-a&#38;rls=org.mozilla%3Aes-ES%3Aofficial&#38;hs=Xrh&#38;q=instalar+openssh+iphone&#38;btnG=Buscar&#38;meta=" target="_blank">muchísima documentación por Google de como hacerlo</a>. OpenSSH en el iPhone no vale solo para esto, la utilidad más conocida que tiene es el <a href="http://www.esferaiphone.com/tutoriales/acceder-al-iphone-mediante-ssh-windows/" target="_blank">acceso por completo al sistema de archivos del iPhone gráficamente a través de Windows</a>.</p>
<p>Una vez instalado y funcionando hay que instalar<strong> iSSH</strong>, que una de las maneras de conseguirlo es <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=287765826&#38;mt=8" target="_blank">pagando 3,99€ en la App Store</a> de Apple. iSSH es una consola capaz de poder conectarse a través de SSH y <a href="http://es.wikipedia.org/wiki/Telnet" target="_blank">Telnet</a> incluso si queremos conectarnos a un <a href="http://es.wikipedia.org/wiki/X_Window_System" target="_blank">X server</a> con iSSH podremos. Más información en el link de antes.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0015.png" alt="" width="320" height="480" /></p>
<p>Con iSSH instalado tendremos que ejecutarlo y acceder a ‘<strong>Add Configuration…</strong>’</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0010_a.png" alt="" width="320" height="480" /></p>
<p>Aquí tendremos que rellenar los datos tal y como se muestra en la imagen (los campos que no se muestran es que no hay que tocarlos).</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0016.png" alt="" width="320" height="480" /></p>
<p>Una vez hecho esto pulsamos en ‘<strong>Save</strong>’ y el programa volverá a la anterior pantalla con una nueva configuración llamada iPhone como aparece en la imagen.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0010.png" alt="" width="320" height="480" /></p>
<p>Pulsamos sobre ella y al cabo de unos segundos nos aparecerá una ventana pidiendo que debemos añadir una clave RSA2 a iSSH esto es necesario porque de esta manera estamos realizando una conexión cifrada entre iSSH y el iPhone, aquí no es que sea excesivamente necesario, pero poneros entre un servidor y un PC conectado por SSH al servidor, si hay una tercera máquina capturando paquetes teóricamente no se “enteraría” de lo que captura al estar cifrado y no tener la llave para poder descifrarlo, esa llame es esa clave RSA2 que nos pide el iSSH para añadir. Sin más pulsamos en ‘<strong>Accept</strong>’.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0011.png" alt="" width="320" height="480" /></p>
<p>La siguiente ventana nos pedirá una contraseña para el usuario root. Como cualquier sistema operativo UNIX el super-usuario root debe tener una contraseña, en este caso es “alpine” sin comillas.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0014.png" alt="" width="320" height="480" /></p>
<p>Hecho esto iSSH se conectará el SSH del iPhone y podremos manejarlo sin problemas.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0012.png" alt="" width="320" height="480" /></p>
<p>Una vez que terminemos con la sesión tendremos que escibir ‘exit’ para cerrar la conexión. El iPhone nos contestará con un ‘logout’ (sesión terminada) y o bien pulsando la X si queremos realizar otra conexión o el botón Home para salir del programa abandonaremos esa terminal.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://i304.photobucket.com/albums/nn183/ZeRoX_AlphA/iPhone/IMG_0013.png" alt="" width="320" height="480" /></p>
<p>Pues esto es todo, lógicamente en el apartado de configuración podremos modificar los valores para conectarlo a otro PC a través de SSH como hemos visto aquí, o a través de Telnet, una conexión <a href="http://es.wikipedia.org/wiki/VNC" target="_blank">VNC</a>, etc.</p>
<p><span style="color:#0000ff;"><span style="text-decoration:underline;"><strong>EDIT 24/08/09</strong></span></span>: Me he enterado (error mio el hacer esta entrada antes de buscarlo) que existe una terminal directa del iPhone sin necesidad de conectarse por medio del SSH, era lógico que ya existiese un programa que sin necesidad de terceros pudiera habilitar la consola de comandos del sistema operativo. La aplicación en concreto es <a href="http://code.google.com/p/mobileterminal/" target="_blank"><strong>MobileTerminal</strong></a>. Personalmente no me gusta demasiado ya que a mi me hace cosas raras, se cierra solo y tiene problemas con la posición de la pantalla. Seguiré con el método descrito en el blog por dos motivos: el primero es que el SSH lo uso para poder acceder al sistema de archivos del iPhone a través de cualquier PC y que iSSH me permite conectarme a servidores que administro y para una emergenci a(o no)es realmente bueno.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Autentificación mediante claves públicas en SSH]]></title>
<link>http://linuxcode.wordpress.com/2009/08/08/autentificacion-mediante-claves-publicas-en-ssh/</link>
<pubDate>Sat, 08 Aug 2009 02:04:09 +0000</pubDate>
<dc:creator>illbnet</dc:creator>
<guid>http://linuxcode.wordpress.com/2009/08/08/autentificacion-mediante-claves-publicas-en-ssh/</guid>
<description><![CDATA[¿Qué son las claves públicas? Wikipedia En criptografía, se denomina una infraestructura de clave pú]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h2>¿Qué son las claves públicas?</h2>
<p><strong>Wikipedia<img class="alignright size-full wp-image-27" title="networking" src="http://linuxcode.wordpress.com/files/2009/08/networking.png" alt="networking" width="128" height="128" /> </strong></p>
<blockquote><p>En criptografía, se denomina una infraestructura de clave pública a una combinación de hardware, software y procedimientos de seguridad que permiten la ejecución con garantías de operaciones criptográficas como el cifrado, la firma digital o el no rechazo de transacciones electrónicas. Para un correcto funcionamiento es necesario que intervengan las siguientes partes:</p>
<ul>
<li>Un usuario iniciador de la operación.</li>
<li>Sistemas servidores que dan ocurrencia de la operación y garantizan la validez de los certificados implicados en la operación.</li>
<li>Un destinatario de los datos cifrados/firmados/enviados garantizados por parte del usuario iniciador de la operación.</li>
</ul>
</blockquote>
<h2>¿Qué objetivo nos marcamos?</h2>
<p>El propósito de usar la autentificación mediante claves públicas es sacar el mayor partido posible a SSH mediante el uso de clave privada y pública.  De forma que al compartir esta última con el servidor, podamos <strong>identificarnos automáticamente</strong>, sin necesidad de utilizar el esquema clásico de usuario y contraseña, al que estamos acostumbrados.</p>
<h2>¿Qué algoritmos de cifrado usar?</h2>
<p>SSH permite usar los algoritmos RSA y DSA, pero… ¿cuál de ellos nos conviene más?</p>
<ul>
<li><strong>RSA </strong>– Es un algoritmo asimétrico cifrador de bloques, que utiliza una clave pública, la cual se distribuye y otra privada, guardada en secreto por su propietario.Su funcionamiento reside en el <strong>uso de expresiones exponenciales</strong> dentro de la aritmética modular. Obteniendo una completa seguridad, debido a que aún no se conocen formas óptimas de factorizar  un número grande en sus factores primos utilizando ordenadores personales.El RSA se basa en dos problemas matemáticos: el problema de factorizar números grandes y el problema RSA. <strong>El descifrado completo de un texto cifrado con RSA es computacionalmente intratable</strong>.<br />
Por otro lado la factorización de números grandes proponen métodos para longitudes de 600-700 bits de longitud. Y generalmente, las claves RSA usan entre 1024-2048 bits.</li>
<li><strong>DSA</strong> – (<em>Digital Signature Algorithm o Algoritmo Estándar de Firmado</em>) es el algoritmo de firmado digital incluido en el DSS (Digital Signature Standard o Estándar de Firmas Digitales) del NIST Norteamericano.<strong> Está basado en el problema de los logaritmos discretos</strong> y únicamente puede emplearse para las firmas digitales. A diferencia del RSA, que puede emplearse también para encriptar.La elección de este algoritmo como estándar de firmado generó multitud de críticas puesto que perdía bastante flexibilidad respecto al RSA.</li>
</ul>
<p>La diferencia entre ambos reside en los tiempos obtenidos para la generación, firmado y comprobación de las claves públicas. Usando<a href="http://dev.neuclear.org/commons/xref-test/org/neuclear/commons/crypto/SigningBenchmark.html"> este benchmark</a> (<em>podéis usar cualquier IDE con la última versión del JDK</em>) se obtuvieron los siguientes tiempos:</p>
<table border="1" cellpadding="0">
<tbody>
<tr>
<td>
<p align="center"><strong>Algoritmo</strong></p>
</td>
<td>
<p align="center"><strong>Generación de llaves * 1(ms.)</strong></p>
</td>
<td>
<p align="center"><strong>Firmado * 100 (ms.)</strong></p>
</td>
<td>
<p align="center"><strong>Verificación*100(ms.)</strong></p>
</td>
</tr>
<tr>
<td>RSA 512</td>
<td>544.61</td>
<td>915</td>
<td>160</td>
</tr>
<tr>
<td>RSA 1024</td>
<td>1120.46</td>
<td>4188</td>
<td>263</td>
</tr>
<tr>
<td>DSA 512</td>
<td>6.62</td>
<td>634</td>
<td>988</td>
</tr>
<tr>
<td>DSA 1024</td>
<td>17.87</td>
<td>1775</td>
<td>3397</td>
</tr>
</tbody>
</table>
<p>El <strong>a</strong><strong>lgoritmo DSA es más rápido para generar la firma que para verificarla</strong>, al contrario de lo que sucede con RSA. Por lo que para realizar la autentificación en nuestro servidor SSH usaremos este último.</p>
<p>Además, si comparamos el tamaño de las llaves generadas por ambos algoritmos, comprobaremos cómo <strong>las utilizadas por RSA son superiores a las de DSA</strong>.</p>
<p>Dicho esto, usaremos RSA.</p>
<h2>Configuración del servidor</h2>
<p>Comprobamos si el equipo donde tenemos instalado sshd tiene activada la versión 2 del protocolo SSH y que esté habilitada la opción para utilizar claves RSA. Para ello buscamos las siguientes directivas en el fichero <strong>/etc/ssh/sshd_config</strong>:</p>
<p><code>Protocol 2<br />
RSAAuthentication yes<br />
AuthorizedKeysFile .ssh/authorized_keys</code></p>
<p>Para cada usuario que vaya a conectarse, debe existir el directorio <strong>/home/usuario/.ssh</strong> y en él el archivo <strong>authorized_keys</strong>. En caso de no ser así deberemos crearlo de forma manual y posteriormente iniciar el servidor.</p>
<p><code>cd ~<br />
mkdir .ssh<br />
touch .ssh/authorized_keys<br />
sudo /etc/init.d/sshd start<br />
</code></p>
<h2>Generación de los pares de claves RSA</h2>
<p>Como antes comentamos, SSH nos permite generar indistintamente claves RSA o DSA (<em>en nuestro caso usaremos la mencionada en primer lugar</em>), creándose para ambas una clave pública y una clave privada.</p>
<p>Dichas claves, pueden generarse en el propio servidor, en el ordenador cliente, o en cualquier otra máquina.</p>
<p>Al final <strong>sólo la clave pública debe aparecer en el fichero .ssh/authorized_keys</strong> del servidor al que queremos conectarnos.</p>
<p>El usuario interesado en generar el par de claves usará <strong>ssh-keygen</strong>. En el proceso, se nos pedirá introducir un passphrase, lo que viene a ser una contraseña para poder generar unas claves más fuertes y seguras.</p>
<p>En nuestro caso, vamos a usarla y a explicar posteriormente como indicarle al sistema que sólo nos la pida una vez por sesión, y no cada vez que nos autentifiquemos en el sistema.</p>
<p><code>$ ssh-keygen -t rsa<br />
Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/sebas/.ssh/id_rsa):<br />
Enter passphrase (empty for no passphrase):<br />
Enter same passphrase again:<br />
Your identification has been saved in /home/sebas/.ssh/id_rsa.<br />
Your public key has been saved in /home/sebas/.ssh/id_rsa.pub.<br />
The key fingerprint is:<br />
63:de:92:6d:00:fa:d9:17:55:45:ce:bc:25:42:8b:4c sebas@TheWorkstation<br />
The key's randomart image is:<br />
+--[ RSA 2048]----+<br />
&#124;          E . .oo&#124;<br />
&#124;         o o o + &#124;<br />
&#124;      .   o + . =&#124;<br />
&#124;     . .   . . .o&#124;<br />
&#124;    .   S .    . &#124;<br />
&#124;     . = * .     &#124;<br />
&#124;      o = =      &#124;<br />
&#124;         +       &#124;<br />
&#124;                 &#124;<br />
+-----------------+<br />
</code></p>
<p>El anagrama que produce esta versión de ssh-keygen, se denomina <strong>randomart </strong>y se trata de una representación visual de la huella</p>
<p><img class="alignright size-full wp-image-39" title="Notebookcheck- AMD ATI Mobility Radeon HD 4570_1245224146636" src="http://linuxcode.wordpress.com/files/2009/08/notebookcheck-amd-ati-mobility-radeon-hd-4570_1245224146636.png" alt="Notebookcheck- AMD ATI Mobility Radeon HD 4570_1245224146636" width="120" height="120" /></p>
<p>digital de nuestra clave, para que sea más legible para el ojo humano y para dispositivos ópticos.</p>
<p>Si lo deseas, puedes usar la herramienta <a href="http://www.tastyrabbit.net/visprint/">visprint </a>que a través de técnicas de fractales, te permitirá obtener otro tipo de randomart.</p>
<h2>Instalación de clave pública y protección de la clave privada</h2>
<p>Para validar todo este proceso es necesario colocar nuestra clave pública en el servidor donde tenemos pensado autentificarnos.</p>
<p>Existen varias posibilidades de hacerlo, una de ellas es por ejemplo hacer uso del siguiente comando (<strong>Cliente</strong>):</p>
<p><code>[usuario1@localhost usuario1]$ ssh usuario @host_remoto \'cat &#62;&#62; .ssh/authorized_keys' &#60; .ssh/id_dsa.pub</code></p>
<p>Con este comando añadimos directamente la clave al fichero authorized_keys del servidor remoto de forma automática, ahorrándonos así un poco de trabajo.</p>
<p>También podemos usar (<strong>Cliente</strong>):</p>
<p><code>$ ssh-copy-id usuario_remoto@host_remoto</code></p>
<p>Pero ya que estamos haciendo todo con paso firme y decidido, continuemos haciendo las cosas con buen pie. Así que vamos a usar el comando scp, que trae incluido OpenSSH para hacer una transacción de ficheros entre el cliente y el servidor remoto de la forma más segura posible. Así que usaremos la siguiente orden (<strong>Cliente</strong>)</p>
<p><code>$ cd ~/.ssh<br />
$ scp id_rsa.pub usuario@host_remoto/</code></p>
<blockquote><p>Recuerda que la clave pública debe ser incluída en el fichero <strong>~/.ssh/authorized_keys</strong> de cada máquina donde queramos usar dicha autentificación.</p></blockquote>
<p>Ahora que ya tenemos la clave pública en el servidor, falta añadirla al fichero authorized_keys de éste (<em>algo que comentamos anteriormente que se podría conseguir de forma directa utilizando el primer comando</em>) (<strong>Servidor</strong>).</p>
<p><code>$ cd ~/.ssh<br />
$ cat id_rsa.pub &#62;&#62; authorized_keys<br />
$ shred -v  --remove id_rsa.pub</code></p>
<h2>Conclusión</h2>
<p>Si has realizado correctamente todos los pasos que se han ido indicando, ahora podrás conectarte a tu servidor SSH (Si no tienes uno, visita ésta entrada donde te explicamos cómo montar uno) sin necesidad de identificarte, tan sólo haciendo uso de las claves RSA que has generado.</p>
<p>También puedes incrementar un poco la seguridad modificando las siguientes directivas de tu fichero de configuración <strong>sshd_config</strong>:</p>
<p><code>PasswordAuthentication no<br />
PermitRootLogin no</code></p>
<p>Con las que impedirás la conexión como administrador y la autentificación mediante password para los usuarios.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Iniciación a SSH]]></title>
<link>http://linuxcode.wordpress.com/2009/08/05/iniciacion-a-ssh/</link>
<pubDate>Wed, 05 Aug 2009 14:34:32 +0000</pubDate>
<dc:creator>illbnet</dc:creator>
<guid>http://linuxcode.wordpress.com/2009/08/05/iniciacion-a-ssh/</guid>
<description><![CDATA[¿Qué es SSH? Conocido como Secure Shell (Intérprete Seguro de Órdenes) es el protocolo usado por exc]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><h2>¿Qué es SSH?<img class="alignright size-full wp-image-12" title="icono-ventanas" src="http://linuxcode.wordpress.com/files/2009/08/ico-ventanas.jpg" alt="icono-ventanas" width="128" height="128" /></h2>
<p>Conocido como<strong> Secure Shell </strong>(<em>Intérprete Seguro de Órdenes</em>) es el protocolo usado por excelencia para establecer conexión con máquinas remotas a través de una red.<br />
Ampliamente extendido entre los usuarios, se caracteriza por permitir un control completo del ordenador servidor a través de un intérprete de órdenes o a través de <a href="http://es.wikipedia.org/wiki/Protocolo_del_sistema_de_ventanas_X">X</a> para ejecutar aplicaciones gráficas en caso de disponer de un servidor corriendo.</p>
<h2>¿Por qué SSH?</h2>
<p>SSH es un protocolo caracterizado por encriptar todas las conexiones que realiza, imposibilitando a terceros descifrar lo que se escribe durante la sesión, incluido el usuario y la contraseña.</p>
<p>Algo imposible con el protocolo FTP, donde la información viaja en texto plano.</p>
<p>Además, combinando los protocolos <a href="http://es.wikipedia.org/wiki/SCP">scp </a>(<em>Secure Copy</em>) y <a href="http://es.wikipedia.org/wiki/Secure_Shell_Filesystem">ssfhs </a>(<em>Secure Shell FileSystem</em>) con SSH conseguiremos una forma robusta e impenetrable de compartir ficheros e información entre equipos remotos.</p>
<h2>Conociendo a OpenSSH</h2>
<p>OpenSSH es un conjunto de aplicaciones que tiene como objetivo permitir comunicaciones cifradas a través de una red, usando para ello el protocolo SSH comentado anteriormente.</p>
<p>El proyecto está liderado por <a href="http://es.wikipedia.org/wiki/Theo_de_Raadt">Theo de Raadt </a>y es una alternativa libre a <a href="http://es.wikipedia.org/wiki/SSH">SSH</a>.</p>
<p>Las aplicaciones que vienen incluidas son:</p>
<ul>
<li><strong>ssh </strong>– Reemplaza a <a href="http://es.wikipedia.org/wiki/Rlogin">rlogin </a>y <a href="http://es.wikipedia.org/wiki/Telnet">telnet</a>.</li>
<li><strong>scp</strong> – Reemplaza a <a href="http://es.wikipedia.org/wiki/Rcp">rcp</a>.</li>
<li><strong>sftp</strong> – Reemplaza a ftp para copiar ficheros entre dos computadoras.</li>
<li><strong>sshd</strong> – Servidor demonio SSH.</li>
<li><strong>ssh-keygen</strong> – Herramienta usada para generar claves <a href="http://es.wikipedia.org/wiki/RSA">RSA </a>y <a href="http://es.wikipedia.org/wiki/DSA">DSA </a>usadas para mejorar la seguridad y autentificar al usuario que establece la conexión.</li>
<li><strong>ssh-agent</strong> &#124; <strong>ssh-add</strong> -  Herramienta para autentificar de forma más sencilla, sin necesidad de estar continuamente el passhrase usado como clave.</li>
<li><strong>ssh-keyscan</strong> – Escanea una lista de clientes y recoge sus claves públicas.</li>
</ul>
<h2><strong>Clientes SSH</strong></h2>
<p>Si decides no usar OpenSSH desde Linux, siempre puedes usar alguna de estas aplicaciones libres:</p>
<ul>
<li><strong>OSSH</strong> – A diferencia de OpenSSH que añade el protocolo SSH2 y extiende el soporte de SSH1. OSSH únicamente implementa SSH1.</li>
<li><strong>LSH/psst</strong> – Implementación libre del protocolo SSH2, estandarizado actualmente por el grupo de trabajo IETF SECSH.</li>
<li><strong>Dropbear</strong> -  Pequeño servidor SSH2 y cliente. Que funciona bajo varias plataformas basadas en POSIX.</li>
</ul>
<p>Para Windows, puedes encontrar:</p>
<ul>
<li><strong>PuTTY</strong> – Implementación del protocolo SSH1+SSH2, posiblemente sea el cliente más extendido y usado entre los usuarios.</li>
<li><strong>WinSCP</strong> – GUI basada en sftp y scp. El núcleo que sustenta su protocolo SSH está basado en PuTTY.</li>
<li><strong>FileZilla </strong>– Potente cliente FTP. Diseñado pensando en la usabilidad y facilidad.</li>
</ul>
<p>No obstante para este tutorial y los venideros, se usará OpenSSH (<em>Linux</em>)/PuTTY (<em>Windows</em>).</p>
<h2><strong>Instalación de OpenSSH</strong></h2>
<p>Algunas distribuciones traen instalado por defecto un cliente SSH, no obstante explicaremos como realizarla para un sistema Ubuntu.</p>
<p><strong>Instalando a través de terminal</strong></p>
<ul>
<li>Para instalar el cliente:        <code> sudo apt-get install openssh-client</code></li>
<li>Para instalar el servidor:       <code>sudo apt-get install openssh-server</code></li>
</ul>
<h2>Primeros pasos con SSH</h2>
<ul>
<li>Para iniciar el servidor SSH:              <code>service ssh start</code></li>
<li>Para parar el servidor SSH:               <code>service ssh stop</code></li>
<li>Para reiniciar el servidor SSH:          <code>service ssh restart</code></li>
</ul>
<h2><strong>Conectándonos a un servidor remoto (Linux) desde un cliente (Linux)</strong></h2>
<p>Primero descubramos qué dirección IP tenemos en el servidor. Para ello desde una ventana de terminal escribimos:</p>
<p><code>/sbin/ifconfig</code></p>
<p>Nos aseguramos de que el servicio esté ejecutándose:</p>
<p><code>service ssh start</code></p>
<p>Y ahora podemos dirigirnos a nuestro cliente y establecer una conexión remota al equipo que ejerce de servidor. Basta con escribir la siguiente orden en la terminal:</p>
<p><code>ssh usuario_remoto@host_remoto</code></p>
<p>Dónde:</p>
<ul>
<li><strong>usuario_remoto</strong> – Será el nombre de usuario con el que queremos iniciar sesión. Debes tener en cuenta que si no está registrado en el equipo, no podrás iniciar sesión con él.</li>
<li><strong>host_remoto</strong> – Es la dirección del equipo que ejerce como servidor. Ahí es donde pondremos la dirección IP que hemos obtenido antes.</li>
</ul>
<p>La primera vez que establezcas conexión el sistema nos pedirá confirmación, bastará con decir “<strong>yes</strong>” y una vez introducida la contraseña correcta para el usuario solicitado, nos encontraremos identificados en el equipo remoto.</p>
<p>Los comandos, programas y scripts que lancemos tras conectarnos se ejecutarán en la máquina remota, utilizando los recursos de esta (<em>CPU, memoria, disco, etc&#8230;</em>).</p>
<p>Recuerda que podrás hacer todo aquello que se contemple bajo los permisos que posea el usuario con el que hayas iniciado sesión.</p>
<h2><strong>Establezcamos una conexión que nos permita ejecutar aplicaciones gráficas.</strong></h2>
<p>Ahora que hemos visto cómo conectarnos y trabajar desde nuestra ventana de terminal, vamos a ir un poco más allá, y vamos a ejecutar aplicaciones gráficas.</p>
<p>Un método bastante efectivo consiste en utilizar un túnel SSH para encapsular el protocolo X11, permitiendo transmitir la información de manera segura y sin crear conflictos con los cortafuegos.</p>
<p>Pero para ello debemos configurar un par de parámetros en el fichero <strong>sshd_config</strong>:</p>
<p><code>X11Forwarding    yes<br />
AllowTcpForwarding    yes</code></p>
<p>Con<strong> X11Forwarding</strong> especificamos si se permite el reenvío por X11. El valor por defecto es ‘yes’. Desactivarlo en ningún momento ayudará a mejorar la seguridad del servidor.</p>
<p>Y lo que intentamos conseguir activando dicha directiva es permitir ejecutar aplicaciones gráficas en el servidor remoto. Recordad que X es un sistema de ventanas creado para dotar de interfaz gráfica a los sistemas Unix.</p>
<p>Por otro lado con <strong>AllowTcpForwarding</strong> especificamos si se permite el reenvío a través del protocolo TCP. Al igual que pasaba con X11, desactivarlo, en ningún momento proveerá mayor seguridad a nuestro servidor. Su valor por defecto es ‘yes’.</p>
<p>Una vez hecho esto, ya podemos iniciar una sesión SSH y ejecutar aplicaciones gráficas. Para ello bastará con escribir en nuestra terminal:</p>
<p><code>ssh -X -Y usuario_remoto@host_remota</code></p>
<ul>
<li><strong>-X</strong> (<em>X11 forwarding</em>)</li>
<li><strong>-Y</strong> (<em>X11 trusted forwarding</em>)</li>
</ul>
<p>Ahora podremos ejecutar cualquier aplicación que se encuentre instalada en el servidor. Reproduzcamos una película con mplayer por ejemplo:</p>
<p><code>mplayer nombre_película</code></p>
<p>Recuerda que los recursos se tomarán del equipo donde te encuentres conectado.</p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[Salada de Frutas...]]></title>
<link>http://arieduardo.wordpress.com/2009/08/03/salada-de-frutas/</link>
<pubDate>Mon, 03 Aug 2009 19:21:48 +0000</pubDate>
<dc:creator>arieduardo</dc:creator>
<guid>http://arieduardo.wordpress.com/2009/08/03/salada-de-frutas/</guid>
<description><![CDATA[Host Ubuntu 9.04,rodando uma Vitual Machine Windows XP, acessando um servidor FreeNX Ubuntu 9.04, vi]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Host Ubuntu 9.04,rodando uma Vitual Machine Windows XP, acessando um servidor FreeNX Ubuntu 9.04, via Hamachi&#8230; <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-214" title="Salada de Frutas" src="http://arieduardo.wordpress.com/files/2009/08/salada_de_frutas.png?w=300" alt="Salada de Frutas" width="521" height="393" /></p>
</div>]]></content:encoded>
</item>
<item>
<title><![CDATA[tutorial: building an OpenSSH chroot jail on CentOS 5.3]]></title>
<link>http://erikeldridge.wordpress.com/2009/07/28/tutorial-building-an-openssh-chroot-jail-on-centos-5-3/</link>
<pubDate>Wed, 29 Jul 2009 03:51:42 +0000</pubDate>
<dc:creator>Erik</dc:creator>
<guid>http://erikeldridge.wordpress.com/2009/07/28/tutorial-building-an-openssh-chroot-jail-on-centos-5-3/</guid>
<description><![CDATA[Goal: allow users to log into a CentOS 5.3 server via ssh, but then constrain their mobility by usin]]></description>
<content:encoded><![CDATA[<div class='snap_preview'><p>Goal:</p>
<p>allow users to log into a CentOS 5.3 server via ssh, but then constrain their mobility by using the chroot support introduced in OpenSSH 4.8p1.</p>
<p>Resources:</p>
<p>1) <a href="http://v2.robbyt.com/2008/howto/chrooted-sftp-with-openssh-5/">http://v2.robbyt.com/2008/howto/chrooted-sftp-with-openssh-5/</a></p>
<p>2) <a href="http://www.dotnux.com/?p=3">http://www.dotnux.com/?p=3</a></p>
<p>3) <a href="http://forums.fedoraforum.org/archive/index.php/t-30684.html">http://forums.fedoraforum.org/archive/index.php/t-30684.html</a></p>
<p>Procedure:</p>
<p>I followed the tutorial in resource 2 for the most part, but the rpm build will fail with an error if the &#8220;/usr/src/redhat/RPMS/i386&#8243; and &#8220;/usr/src/redhat/BUILD&#8221; directories are not made in advance, a step in resource 1.  </p>
<p>With these two tutorials, I was able to build and install OpenSSH 5.1, but then I ran into a couple hiccups.  When I tried to log in using a dummy account (&#8220;random1&#8243;) assigned to the &#8220;sshusers&#8221; group described in resource 1, ssh rejected my log in with an error: &#8220;Permission denied (publickey,gssapi-with-mic).&#8221;.  Looking in the ssh logs (&#8220;/var/log/secure&#8221;), I saw: &#8220;Authentication refused: bad ownership or modes for file &#8220;/home/random1/.ssh/authorized_keys&#8221;.  Referring to the details provided in resource 3, I changed the permissions on &#8220;random1/.ssh&#8221; and &#8220;random1/.ssh/authorized_users&#8221; to 700.  Then I was able to ssh in, but immediately I received the error &#8220;/bin/bash: No such file or directory&#8221;, and was bounced out.  I moved the ls and bash executables placed in &#8220;/usr/bin&#8221; in resource 2, to &#8220;/bin&#8221; and then all was good <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Special thanks to robbyt, author of resource 1, for his assistance.</p>
</div>]]></content:encoded>
</item>

</channel>
</rss>
