<?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>ssh &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/ssh/</link>
	<description>Feed of posts on WordPress.com tagged "ssh"</description>
	<pubDate>Sat, 26 Jul 2008 01:05:43 +0000</pubDate>

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

<item>
<title><![CDATA[Expect!]]></title>
<link>http://rejex.wordpress.com/?p=379</link>
<pubDate>Fri, 25 Jul 2008 19:08:35 +0000</pubDate>
<dc:creator>jp</dc:creator>
<guid>http://rejex.wordpress.com/?p=379</guid>
<description><![CDATA[Salve gente.
Settimana un po&#8217; faticosa, quindi mi faccio vivo solo ora.  
Il problema
Ma venia]]></description>
<content:encoded><![CDATA[<p>Salve gente.</p>
<p>Settimana un po' faticosa, quindi mi faccio vivo solo ora. :P</p>
<p><font size='+1' color='#005197'>Il problema</font></p>
<p>Ma veniamo al sodo: una delle cose più noiose dell'amministrare svariate macchine è spostare file, <em>smandrupparli</em>, ... </p>
<p>In particolare, in ambiente <a href="http://it.wikipedia.org/wiki/Unix">Unix</a> (<em>ma non solo...</em>) la comodità e praticità di usare strumenti come <a href="http://it.wikipedia.org/wiki/OpenSSH">OpenSSH</a> (server e client) per accedere e gestire più nodi si scontra spesso con la noia di doversi <a href="http://it.wikipedia.org/wiki/Login">loggare</a> su tutte le macchine.</p>
<p><font size='+1' color='#005197'>La soluzione "canonica"</font></p>
<p>Una soluzione è certamente rappresentata dal ricorso al programma <a href="http://en.wikipedia.org/wiki/Ssh-agent">Ssh-agent</a> di OpenSSH, che permette di stabilire connessioni <a href="http://it.wikipedia.org/wiki/Secure_shell">SSH</a> senza dover digitare la password (<em>opportunamente configurato, ci penserà lui al vostro posto</em>).</p>
<p><font size='+1' color='#005197'>Expect!</font></p>
<p>Un'altra alternativa, certamente grezza ma altrettanto efficace è usare <a href="http://en.wikipedia.org/wiki/Expect"><em>expect</em></a>, un eccellente programma che vi permette di rendere non-interattive ("<a href="http://it.wikipedia.org/wiki/Batch">batch</a>") delle sessioni altrimenti interattive.</p>
<p>Sostanzialmente vi permette di pianificare, sotto forma di script, una serie di "<em>a-domanda-X-rispondi-Y-e-proseguiamo-con-la-prossima</em>".</p>
<p>Per capirci: quando effettuate una connessione SSH ad una macchina vi troverete la fatidica richiesta di inserimento password. </p>
<p>Voi potete fare in modo che <em>expect</em> attenda (<em>da cui il nome</em>) esattamente quella domanda e quando la riceve invii la password al posto vostro.</p>
<p><font size='+1' color='#005197'>Un esempio concreto</font></p>
<p><em><font color='#993333'><strong>Attenzione</strong></font>: quanto riportato di seguito ha solo una valore "didattico" e non mi assumo alcuna responsabilità dell'uso che ne farete. Per rendere le cose più semplici ho <strong>volutamente</strong> optato per tralasciare dettagli importanti "di sicurezza". In particolare vedrete la password quando la digiterete (una e una sola volta) ed essa verrà comunicata in chiaro agli script. Non è una soluzione "sicura" ma lo scopo di questo post è <strong>solo</strong> quello di mostrarvi expect in azione.</em></p>
<p>Supponiamo di avere la necessità di trasferire un file (<em>prova.txt</em>) su diverse macchine, tutte con la stessa combinazione utente/password (<em>come detto, solo per finalità didattiche</em>) e di non voler digitare la password per ogni connessione/trasferimento via SSH. </p>
<p>In altre parole vogliamo usare <em>expect</em> per automatizzare i trasferimenti di file via SSH. </p>
<p>Iniziamo salvando gli IP, uno per riga, in un file (nel nostro caso lo chiameremo <em>ip.txt</em>).</p>
<p>Poi potremmo pensare di creare degli scrippettini come questi:</p>
<ol>
<li>uno script di shell "involucro", chiamato ad esempio <em>copia_multipla.sh</em>, che legge il file riga per riga (cioè un IP per volta) e richiama opportunamente i due seguenti scrippettini <em>expect</em>. La password di connessione SSH viene richiesta da questo script e passata ai successivi (<em>non scrivetela mai dentro uno script!</em>);</li>
<li>il primo scrippettino expect, <em>testa</em>, tenta di collegarsi all'IP-riga e risponderà "yes" all'eventuale domanda posta da SSH quando ci si connette per la prima volta ad un IP/macchina. Lo script ha un <em>timeout</em> di pochi secondi visto che SSH pone la domanda solo la prima volta che ci si connette a quello specifico nodo (<em>quindi risulta essere inutile se l'IP è già "conosciuto" da SSH</em>);</li>
<li>il secondo e ultimo scrippettino expect, <em>testa</em>, copierà il file su quel nodo, inserendo quando richiesto la password fornita da <em>copia_multipla.sh.</em></li>
</ol>
<p><font size='+1' color='#005197'>Gli script</font></p>
<p>Il file <em>copia_multipla.sh</em> (script di <em>shell Bash</em>):<br />
<font face='Courier New, Courier, mono' color='#003366'><br />
#! /bin/bash<br />
echo -n "Utente? "<br />
read USER<br />
echo -n "Password? "<br />
read PASSWORD<br />
echo -n "File da copiare? "<br />
read FPATH<br />
echo -n "Destinazione? "<br />
read DPATH</p>
<p># legge il file con gli IP, una riga-IP alla volta...<br />
while read IP<br />
do<br />
&#160;&#160;&#160;&#160;echo "NODO: $IP";<br />
&#160;&#160;&#160;&#160;./testa     $USER $PASSWORD $IP<br />
&#160;&#160;&#160;&#160;./copia     $USER $PASSWORD $IP $FPATH $DPATH<br />
&#160;&#160;&#160;&#160;echo " ";<br />
&#160;&#160;&#160;&#160;echo " ";<br />
done &#60; ip.txt</font></p>
<p>Il file <em>testa</em> (script <em>expect</em>):<br />
<font face='Courier New, Courier, mono' color='#003366'><br />
#!/usr/bin/expect -f<br />
set user [lrange $argv 0 0]<br />
set password [lrange $argv 1 1]<br />
set ipaddr [lrange $argv 2 2]<br />
# timeout di 5 secondi: se il nodo risponde<br />
# ma la sua richiesta non è quella di digitare "yes/no"<br />
# possiamo uscire perchè l'IP è già noto a SSH...<br />
set timeout 5<br />
# connessione SSH all'host di destinazione...<br />
spawn ssh $user@$ipaddr ls<br />
# attendiamo la richiesta di primo accesso al nodo via SSH...<br />
expect "(yes/no)?*"<br />
# inviamo "yes"...<br />
send -- "yes\r"<br />
# mandiamo un altro ritorno a capo per essere sicuri<br />
# di aver concluso e chiudiamo la connessione<br />
send -- "\r"<br />
expect eof<br />
</font></p>
<p>Il file <em>copia</em> (script <em>expect</em>):<br />
<font face='Courier New, Courier, mono' color='#003366'><br />
#!/usr/bin/expect -f<br />
set user [lrange $argv 0 0]<br />
set password [lrange $argv 1 1]<br />
set ipaddr [lrange $argv 2 2]<br />
set fpath [lrange $argv 3 3]<br />
set dpath [lrange $argv 4 4]<br />
# timeout infinito (-1): potete regolarvi sulla base<br />
# della dimensionedei file da trasferire...<br />
set timeout -1<br />
# connessione SSH all'host di destinazione per trasferire il file...<br />
spawn scp $fpath $user@$ipaddr:$dpath<br />
# attendiamo la richiesta di password...<br />
expect "*?assword:*"<br />
# inviamo la password...<br />
send -- "$password\r"<br />
# mandiamo un altro ritorno a capo per essere sicuri<br />
# di aver concluso e chiudiamo la connessione<br />
send -- "\r<br />
</font></p>
<p><font size='+1' color='#005197'>Eseguiamo!</font></p>
<p>Dopo aver impostato i permessi di esecuzione agli script (<font face='Courier New, Courier, mono' color='#003366'>chmod +x copia_multipla.sh testa copia</font>) vi basterà eseguire <font face='Courier New, Courier, mono' color='#003366'>./copia_multipla.sh</font>.</p>
<p>Lo script vi chiederà username, password, file da trasferire e directory di destinazione dopodichè pensarà lui a copiare quel file sui nodi contenuti nel file <em>ip.txt</em>.</p>
<p><font size='+1' color='#005197'>Conclusioni</font></p>
<p>Expect è davvero potente. In passato lo avevo usato per testare server di posta simulando sessioni <a href="http://it.wikipedia.org/wiki/SMTP">SMTP</a> via <a href="http://it.wikipedia.org/wiki/Telnet">telnet</a> (<em>sì, expect è davvero sublime</em>).</p>
<p>Spero che possa esservi d'aiuto!</p>
<p>Per maggiori info, vi consiglio di dare un'occhiata al <a href="http://www.cyberciti.biz/">sito</a>, sezione apposita (<a href="http://bash.cyberciti.biz/">Bash Shell Scripting Directory For Linux / UNIX</a>) nonchè al <a href="http://bash.cyberciti.biz/security/expect-ssh-login-script/">post specifico</a> da cui ho <em>scopiazz</em>... ehm "tratto ispirazione" inizialmente. ^^'</p>
<p>Ciau. ^^</p>
<p><em><font color='#993333'><strong>Attenzione</strong></font>: se copiate il codice, controllate che gli apicetti/apostrofi (') e le virgolette (") siano "diritti" e non "obliqui": non sono la stessa cosa e hanno significati diversi! (<a href="http://it.wikipedia.org/wiki/Wordpress">Wordpress</a> tende a cambiarli, presumo per ragioni di sicurezza)</em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Rilasciato DragonFly BSD 2.0]]></title>
<link>http://markoblog.wordpress.com/?p=1773</link>
<pubDate>Thu, 24 Jul 2008 09:06:38 +0000</pubDate>
<dc:creator>markostyle</dc:creator>
<guid>http://markoblog.wordpress.com/?p=1773</guid>
<description><![CDATA[Matthew Dillon ha annunciato la disponibilità di DragonFly 2.0, ottavo rilascio principale di quest]]></description>
<content:encoded><![CDATA[<p><a href="http://www.ossblog.it/tag/dragonfly"><img class="post" style="border-color:white;" src="http://static.blogo.it/ossblog/dragonflybsd.jpg" border="0" alt="DragonFly BSD" width="180" height="111" align="left" /></a>Matthew Dillon ha annunciato la disponibilità di DragonFly 2.0, ottavo rilascio principale di questo sistema operativo nato come fork di FreeBSD.</p>
<p>Tra le novità di questo <em>major release</em> vale la pena citare la presenza del <a href="http://www.ossblog.it/post/3293/hammer-un-nuovo-rivale-per-zfs/">filesystem HAMMER</a>, numerosi cambiamenti al kernel (implementazione nativa del fair-queue e connection state recovery nativa), rinnovato supporto hardware, blacklist per <a href="http://markoblog.wordpress.com/2008/05/14/una-patch-mette-in-ginocchio-debian/" target="_blank">le chiavi SSH generate da alcuni sistemi Debian,</a> documentazione migliorata e una gran quantità di software aggiornato (BIND, OpenSSH, tnftpd, GCC ed altri).</p>
<p>L’<a href="http://archive.netbsd.se/?ml=dfbsd-users&#38;a=2008-07&#38;m=7992097">annuncio ufficiale</a> è particolarmente sintetico quindi consiglio di passare direttamente alle <a href="http://www.dragonflybsd.org/community/release2_0.shtml">note di rilascio</a>, che includono anche i link per il download (HTTP ed FTP).</p>
<p style="text-align:right;">[via: distrowatch.com &#124;&#124; ossblog.it]</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Stupid SSH Tricks: Yet Another X11 Protocol Tunneling Tutorial]]></title>
<link>http://georgelenzer.wordpress.com/?p=16</link>
<pubDate>Thu, 24 Jul 2008 02:08:56 +0000</pubDate>
<dc:creator>georgelenzer</dc:creator>
<guid>http://georgelenzer.wordpress.com/?p=16</guid>
<description><![CDATA[Ingredients:
- One X server running on the machine in front of you. (Think of an X server as a virtu]]></description>
<content:encoded><![CDATA[<div class="intro"><strong>Ingredients</strong>:</div>
<div class="intro">- One X server running on the machine in front of you. (Think of an X server as a virtual video monitor with thousands of input jacks and the remote applications as different video sources)<br />
- One OpenSSH server on the system you are connecting to, that must be configured to (tunnel) forward X protocol</div>
<div class="intro">
<p>NOTE: If you are on the Windows platform, you can either purchase a commercial X server, or use Cygwin's excellent free X server. Again... try to imagine that the X server on the machine in front of you "virtualizes" your monitor and makes it "networkable". When you run the X server, it opens a connection on your machine listening for traffic coming from either the network, or (on *nix) shared memory. When you run an X application, it is instructed to connect to the X server so the Xserver can display it's output. (Just like plugging in a game console to one of your TV/Monitor's composite inputs)</p>
<p>Today we will talk about running X applications remotely using OpenSSH. Normally if you run X applications remotely, your X protocol traffic is going over your network connection out in the open.  This is all well and good if you can trust the network that your X traffic is travelling on. But, what if you can't?  This is where ssh and X make a pretty good team. You still run your X server on the machine in front of you like usual. But instead of instructing the remote application to connect directly to it, you use OpenSSH's X Protocol Forwarding so that all X traffic is sent through an encrypted TCP tunnel.</p>
<p><strong>SSH Server Side Preparations</strong><br />
You will need to edit your sshd_config file which controls how your SSH server works. You would make these changes on the machine you are connecting to. First, find your sshd_config file. Typically, it's in /usr/local/etc if you compiled the OpenSSH suite yourself or if the package maintainer went with defaults. In other cases it could be in /etc/openssh or /usr/local/etc/openssh.  To verify for your distribution, you can run the 'find' command:</p>
<p>find /usr -name sshd_config</p>
<p>Once you've located it, make sure you add these lines to it for TCP and X Forwarding:</p>
<p><span style="color:#ff0000;">AllowTcpForwarding yes<br />
X11Forwarding yes<br />
X11DisplayOffset 10<br />
X11UseLocalhost yes</span></p>
<p>You will then need to restart your ssh server so that it reads the new configuration.</p>
<p><strong>SSH Client Side Preparations:</strong></p>
<p>A quick aside about the .ssh directory in your home directory.  Not everyone is familiar with the purpose of this directory, but to simplify using OpenSSH, it's another essential tool.  If you don't already have one, create a text file in ~/.ssh called 'config' and add something like this to it, and save it:</p>
<p><span style="color:#ff0000;">host work<br />
hostname 192.168.1.10<br />
User george</span></p>
<p>Now, if I type 'ssh work' it will automatically try to connect to 192.168.1.10 passing 'george' as the user name.   Obviously, you will need to adjust this appropriately to your correct IP and username.  Combine that with a shared key for passwordless connection, and your life with OpenSSH becomes a lot easier.  Now back to the task at hand.</p>
<p><strong>Testing from the workstation in front of you</strong>:<br />
Now we can test and see if we can forward a simple X app over the ssh tunnel. Assume the  existence of '~/.ssh/config' file and connection profile I create above. Also assume that the remote system has the simple X application 'xeyes' in /usr/bin:</p>
<p>ssh -X work "/usr/bin/xeyes"</p>
<p>We should now be seeing the familiar googly eyes peeking at us. All the application execution is happening remotely, but displaying in front of us and it's coming over an encrypted ssh tunnel to boot!</p>
<p><strong>Add X Forwarding to Your ~/.ssh/config File</strong>:<br />
Instead of having to type 'ssh -X work [some app]', you can instead enable X forwarding from your ~/.ssh/config profiles. For each connection profile you create, you can add:</p>
<p>ForwardX11 yes</p>
<p>This means that all you would have to do to run a remote X app is either log into a shell using that profile and type the name of the X app you want to use, or... You can create a script to run the app using ssh and make an icon for it on your Windows Quick Launch bar or Gnome Panel. A sample script in Linux would be:</p>
<blockquote>
<div>
<p>#!/bin/bash</p>
<p>ssh work "/usr/local/bin/gimp"</p></div>
</blockquote>
<p>Pretty simple, huh?  In Windows, you can write a CMD file using about the same syntax:</p>
<blockquote>
<div>
<p>C:\cygwin\usr\local\bin\ssh work -F "C:\Documents and Settings\george\.ssh\config" "/usr/local/bin/gimp"</p></div>
</blockquote>
<p>You can argue that this is a form of "application publishing" to use a friendly term. But it's really a way of exploiting the features of X in a more secure way and without needing to open anything other than port 22 for OpenSSH. Once everything is configured, it works pretty seamlessly as well.</p>
<p><strong>Compression</strong>:<br />
This X traffic can take up a good deal of bandwidth since it is quite chatty back and forth, and I personally don't use it unless I have a fast connection (DSL 1.5M or better). In the past I used to prefer 'vnc' over ssh for most instances and these days I use Nomachine NX protocol (which I will discuss at a later date) for remote desktop access. However, there is something you can do which might help out a little in terms of speed with X if you really don't have any other options. You can compress your ssh traffic. Just add these lines to each host profile in your ~/.ssh/config file:</p>
<blockquote>
<div>
<p>Compression yes<br />
CompressionLevel 9</p></div>
</blockquote>
<p>You can set your CompressionLevel to anything between 1 and 9 with '1' being the fastest but worst compression, and 9 being slow but better. There is a slight improvement in X application performance. This compression applies across the board to any ssh traffic for that connection profile though, so it's handy to add it to your slower connections.</p>
<p><strong>Final Words</strong>:<br />
Again, I don't pretend to know everything there is about ssh or X and I am sure there are other ways that this can be done better. If you know of any, I am hoping that some of you will have more suggestions that readers here can share.  Please comment.</div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Browsing through SSH-Tunnel]]></title>
<link>http://dhoto.wordpress.com/?p=61</link>
<pubDate>Wed, 23 Jul 2008 18:07:57 +0000</pubDate>
<dc:creator>dhoto</dc:creator>
<guid>http://dhoto.wordpress.com/?p=61</guid>
<description><![CDATA[aaarrrrrrggggghhhhhh,&#8230;
They drop jardiknas line to 1Mbps, and they stop my routing injection f]]></description>
<content:encoded><![CDATA[<p>aaarrrrrrggggghhhhhh,...</p>
<p>They drop jardiknas line to 1Mbps, and they stop my routing injection from inherent... so our campus's internet become LEMOT (slow).</p>
<p>so I have to move to another line...</p>
<p>wait there are no proxy in other line .... because proxy server that use VIP-net line broken</p>
<p>so another solution is using kebo.vlsm.org.</p>
<p>Try to make ssh-tunnel to kebo,...</p>
<p># ssh -ND 9999 kebo.vlsm.org</p>
<p>Then change the browser proxy preference to use SOCKS5 with host : localhost and port 9999</p>
<p>so now you can surf to internet using another line</p>
<p>Good luck</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Apaan sih SSH itu? (bagian 1)]]></title>
<link>http://iphoneall.wordpress.com/?p=1176</link>
<pubDate>Wed, 23 Jul 2008 09:47:19 +0000</pubDate>
<dc:creator>ketanitem</dc:creator>
<guid>http://iphoneall.wordpress.com/?p=1176</guid>
<description><![CDATA[SSH atau Secure Shell adalah nama dari sebuah protokol network yang mengatur serta memperbolehkan (a]]></description>
<content:encoded><![CDATA[<p>SSH atau Secure Shell adalah nama dari sebuah protokol network yang mengatur serta memperbolehkan (allow) kita untuk mengakses shell (bayangkan  dari device lain secara secure, yang pada awalnya dikembangkan di UNIX device. Kalau kita pernah mengenai telnet, maka SSH kurang lebih sama, bedanya yang pertama tidak secure, sedangkan yang terakhir sesuai namanya secure.</p>
<p>SSH banyak di gunakan di device yang memiliki flavor UNIX seperti Linux, Mac OSX dan iPhone, akan tetapi Windows pun juga memiliki implementasi dari SSH (melalui aplikasi 3rd party). SSH yang banyak di kenal sekarang merupakan pengembangan dari SSH-2. SSH menggunakan Public-Key Cryptography. (versi enkripsi menggunakan public dan private key).</p>
<p>Implementasi yang banyak di gunakan sekarang ini adalah yang versi free yaitu OpenSSH, dan kalau kita perhatikan versi yang di jalankan di environment OpenBSD di iPhone dengan firmware 1.1.x adalah <a href="http://iphoneall.wordpress.com/2008/04/26/openssh-46p1-2/">OpenSSH 4.6p1-2</a>. OpenSSH di buat oleh <a href="http://www.openbsd.org/">the OpenBSD project</a> dan di buat free dibawah lisensi BSD.</p>
<p>OpenSSH suites sendiri terdiri 4 komponen utama:</p>
<ul>
<li>ssh - ini adalah command line utility pengganti telnet</li>
<li>scp - implementasi cp (copy) secara secure across network</li>
<li>sftp - secure ftp (file transfer protocol)</li>
<li>sshd - ssh daemon, ini harus dijalankan di device yag akan kita konek dengan ssh</li>
</ul>
<p>Agar tidak bingung antara protocol dan aplikasi, maka konvensinya adalah SSH (dengan huruf besar semua) berarti kita membicarakan SSH protocol, sedangkan ssh (huruf kecil semua), berarti kita membicarakan aplikasi ssh.</p>
<p><em>bersambung ...</em></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Remote Desktop through a firewall: hardcore version.]]></title>
<link>http://fireflake.wordpress.com/?p=60</link>
<pubDate>Tue, 22 Jul 2008 20:20:45 +0000</pubDate>
<dc:creator>fireflake</dc:creator>
<guid>http://fireflake.wordpress.com/?p=60</guid>
<description><![CDATA[I wanted to run Remote Desktop but a firewall was blocking access. However.. the SSH port was open.
]]></description>
<content:encoded><![CDATA[<p>I wanted to run Remote Desktop but a firewall was blocking access. However.. the SSH port was open.</p>
<p>[que mission impossible theme]</p>
<p>I'm on a Windows-machine and while I can log onto OpenSSH I can't forward X here.</p>
<p>I install VMWare and Ubuntu in a virutal machine.</p>
<p>I start Ubuntu, and run ssh -X my.machine.outside.the.firewall.com</p>
<p>On the command prompt I'm now at an external Linux machine, from here I run: rdesktop the.remote.desktop.machine.com</p>
<p>Voilá!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Autenticazione tramite Public key in Linux]]></title>
<link>http://paolosblog.wordpress.com/?p=162</link>
<pubDate>Tue, 22 Jul 2008 08:38:32 +0000</pubDate>
<dc:creator>P@olo</dc:creator>
<guid>http://paolosblog.wordpress.com/?p=162</guid>
<description><![CDATA[Un ulteriore modo per rafforzare la sicurezza di un sistema Linux contro accessi non autorizzati è ]]></description>
<content:encoded><![CDATA[<p>Un ulteriore modo per rafforzare la sicurezza di un sistema Linux contro accessi non autorizzati è l'utilizzo della <strong>chiave pubblica</strong> (public key) durante la fase di login.</p>
<p align="center"><img src="http://paolosblog.files.wordpress.com/2008/07/key.jpg" alt="key" width="196" height="166" /></p>
<p><span style="color:#000000;"><em>Vantaggi</em></span></p>
<ul>
<li>Elevato grado di sicurezza nel processo di autenticazione.</li>
<li>Solo gli utenti con la chiave corretta possono autenticarsi nel sistema.</li>
<li>Ogni chiave può essere protetta da password (ulteriore protezione).<!--more--></li>
</ul>
<p><span style="color:#000000;"><em>Svantaggi</em></span></p>
<ul>
<li>Senza la giusta chiave non c'è modo di autenticarsi e quindi di accedere al sistema.</li>
<li>La gestione delle chiavi può risultare laboriosa.</li>
</ul>
<p><strong><span style="color:#000080;">PROCEDURA</span></strong></p>
<p>- generare la coppia di chiavi pubblica e privata.<br />
<span style="color:#000080;">ssh-keygen -t rsa</span></p>
<p>La <em>chiave privata</em> viene salvata nel file <strong>id_rsa</strong>.<br />
La <em>chiave pubblica</em> viene salvata nel file <strong>id_rsa.pub</strong>.</p>
<p>- creare la directory nascosta .ssh nella home user.<br />
<span style="color:#000080;">mkdir ~/.ssh</span></p>
<p>- copiare la chiave pubblica nel file authorized_keys.<br />
<span style="color:#000080;">cat id.rsa.pub &#62; ~/.ssh/authorized_keys</span></p>
<p>- impostare i permessi sul file per evitare che altri utenti possano leggere i dati della chiave.<br />
<span style="color:#000080;">chmod go-w ~/<br />
chmod 700 ~/.ssh<br />
chmod go-rwx ~/.ssh</span></p>
<p>- editare il file sshd_conf (deve essere effettuato come root).<br />
<span style="color:#000080;">su -<br />
vi /ets/ssh/sshd_conf</span></p>
<p>- identificare e modificare i parametri come indicato.</p>
<p style="padding-left:30px;"><span style="color:#000080;">PubkeyAuthentication yes<br />
AuthorizedKeysFile .ssh/authorized_keys<br />
PasswordAuthentication no</span></p>
<p>- riavviare il servizio ssh per attivare la nuova configurazione<br />
<span style="color:#000080;">service sshd restart</span></p>
<p><span style="color:#000000;">Una volta effettuato il restart del servizio ssh, l'unico modo per effettuare un login remoto è tramite l'utilizzo delle chiavi generate.</span></p>
<p><span style="color:#000000;">Per generare la chiave pubblica e privata è possibile utilizzare anche altri tools come ad esempio <a title="download puttygen" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">puttygen</a>, membro della famiglia <strong>puTTY</strong> e soggetto a licenza MIT compatibile con la GNU GPL.</span></p>
<p><em><strong><span style="color:#ff0000;"><strong><em><span style="color:#ff0000;">- p@olo</span></em></strong></span></strong></em></p>
<div style="text-align:center;"><em><strong><span style="color:#ff0000;"><a rel="license" href="http://creativecommons.org/licenses/by-nd/2.5/it/"><img class="aligncenter" style="border-width:0;" src="http://creativecommons.org/images/public/somerights20.png" alt="Creative Commons License" /></a></span></strong></em></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Stupid SSH Tricks: Some Essentials]]></title>
<link>http://georgelenzer.wordpress.com/?p=18</link>
<pubDate>Mon, 21 Jul 2008 20:22:00 +0000</pubDate>
<dc:creator>georgelenzer</dc:creator>
<guid>http://georgelenzer.wordpress.com/?p=18</guid>
<description><![CDATA[Any of us who are familiar with OpenSSH assume that everyone who wants to use it knows how to.  But ]]></description>
<content:encoded><![CDATA[<p>Any of us who are familiar with <a href="http://www.openssh.org/">OpenSSH</a> assume that everyone who wants to use it knows how to.  But every day, there is some new thing about it that we learn and there are plenty of people who know little about it.  I am hoping to share some of what I consider to be essential knowledge about the OpenSSH client as well as dispel some misunderstandings.  It is quite a powerful tool when you really delve deeply into it.</p>
<p><strong>Q1.</strong> Isn't OpenSSH just an encrypted telnet program?<br />
<strong>A1.</strong> Short answer, no.   The more complete answer is that it's a suite of programs that provide:<br />
-remote shell access (ie. like telnet)<br />
-remote execution of programs (both text and gui)<br />
-remote data pipes for programs that use standard in/out<br />
-data compression<br />
-TCP tunneling<br />
-ftp-like file transfers<br />
-rcp-like file copying<br />
-public key encryption (of all data passed between client and server)/authentication (no need for passwords)<br />
-GUI login prompt for remote execution of X applications with 'gnome-ssh-askpass'<br />
-More recently, VPN functionality by way of the Linux tun/tap virtual network device driver</p>
<p>And I'm sure there's more... I'm kind of an intermediate user of OpenSSH.</p>
<p><strong>Q2.</strong> Setting up tunnels is a pain.  What's up with this Local/Remote Forward stuff?<br />
<strong>A2</strong>. Actually, 'man ssh_config' is your friend. If you become familiar with the ~/.ssh/config file, you will find yourself not needing to type much to make connections with OpenSSH. Nearly every command line option for the ssh client can be controlled in this file.  For example, I've set up some parameters in my ~/.ssh/config file and called the profile "home". Now I just type: 'ssh home' and I'm in with all the client options in place. The following is an example of some useful things to put in your ~/.ssh/config file:</p>
<p>-Assume that I am connecting from internally at my home (192.168.1.0)<br />
-192.168.1.5 is my web server at home<br />
-192.168.1.2 is my workstation at home<br />
-We'll pretend my workstation at work has TCP port 5022 accessible on the internet for it's OpenSSH server and that it's internet routeable address is 192.168.50.1 (which we know is in private address space.  Just pretend...)</p>
<p>Example '~/.ssh/config':</p>
<blockquote>
<div>
<p><em><br />
# My 'webserver' connection profile.  All I<br />
# need to do to ssh into the web server now<br />
# is type 'ssh webserver'.  I am automatically<br />
# prompted for the password for 'george'.<br />
host webserver<br />
hostname 192.168.1.5<br />
User george</em></p>
<p><em><br />
# My 'work' connection profile with non<br />
# standard port for ssh (5022).<br />
#<br />
# I've also included one LocalForward line to<br />
# forward port 80 from  a web server at work to<br />
# port 4080 on my workstation in front of me.<br />
# So... if I connect with 'ssh work' and log in,<br />
# and point my browser here at home to<br />
# 127.0.0.1:4080, I see the internal web site<br />
# at work here at home.<br />
#<br />
# The RemoteForward line works in reverse.  It<br />
# sends specified TCP ports from my workstation<br />
# in front of me at home to my workstation at work.  In<br />
# this case, OpenSSH is pushing port 5900 (vnc)<br />
# from 192.168.1.2 (here at home) to my<br />
# workstation at work.  If I leave this connection<br />
# up and go to work.  I can run 'vncviewer<br />
# 127.0.0.1:0' in my office at work and log into my workstation at home<br />
# with vnc if needed.<br />
host work<br />
hostname 192.168.50.1<br />
port 5022<br />
User george<br />
LocalForward 4080:privateintranet.employersnet.com:80<br />
RemoteForward 5900:192.168.1.2:5900 </em></div>
</blockquote>
<p><strong>Q3</strong>. Yeah... but I use Windows and I don't have time to mess with Linux.  So how does this help me?</p>
<p><strong>A3.</strong> The best way to get OpenSSH (client and server) going under Windows and enjoy all the benefits is to install and use <a href="http://www.cygwin.com/">Cygwin</a> (click <a href="http://www.cygwin.com/setup.exe">here</a> to download the installer).  It's pretty straightforward if you aren't the sort who is afraid to get into a little *nix command line on your Windows box.  You have the option of either installing  a full Cygwin environment or just installing the needed base components, OpenSSL, OpenSSH, and some admin utilities to run OpenSSH as a Windows service.  There are a few sets of instructions on the Internet to get you started, <a href="http://pigtail.net/LRP/printsrv/cygwin-sshd.html">this</a> being one of the better ones.  At one point there was a Windows installer for OpenSSH, but it is no longer maintained and so is too out of date to consider at this point.  The recommended path is Cygwin.  Finally, if you're the kind of person who uses Windows and Linux and you compile stuff from source, that is also an option with Cygwin.  Just make sure you have the GNU tool chain installed in Cygwin.</p>
<p><strong>Q4.</strong> Why are the docs about OpenSSH on the net so hard to understand?<br />
<strong>A4.</strong> It took me a good deal of digging to try and find some useful info for tunneling and Public Key info for OpenSSH when I was first starting out. So, yes, the documentation could use some major improvements for people who are a little less technically inclined. To be honest, I think a nice GUI framework around OpenSSH would go a long way to getting more people to use it. There is PuTTY for Windows and it can be made to work in the context of what we're talking about here, but it has the problem of just presenting itself as a telnet-like client and immediately turning people off who don't need "telnet". For example, "I never use shells or command line, why would I need an ssh  telnet client"? Trying to convey the fact that telnet and OpenSSH are not the same thing, is difficult. If there was just an OpenSSH standalone "Tunneling" GUI app, I think more interest in OpenSSH would grow on the Windows side. Still, when it comes to the basics of OpenSSH on Unix, the man pages are currently the best resource. The best places to look are:</p>
<p><em><br />
'man sshd_config' - Tweak your ssh server to do exactly what you need<br />
'man ssh_config' - Find out what else you can do with ~/.ssh/config to minimize your command strings<br />
'man scp' - Learn how to copy files AND directories using 'scp'<br />
'man sftp' - A command line FTP-like interface for putting and getting files viw OpenSSH (I used to use this all the time, but have since moved to 'scp'.)<br />
'man ssh' - Check out the less frequently used options. </em></p>
<p><strong>Q5</strong>. Someone mentioned that I can use 'ssh' in combination with 'tar' or '<a href="http://samba.anu.edu.au/rsync/">rsync</a>' for remote backup.  Is that true?<br />
<strong>A5.</strong> More or less, depending on what you consider a useful backup. I've used ssh and tar for "imaging" Linux boxes. It works well, but has expected limitations. A quick example of using ssh, tar, and gzip to "image" BoxA to BoxB. Assume that we have set up ~/.ssh/config to include all needed info for username and hostname:</p>
<p><em> Backing up '/' on BoxA to BoxB, intitiated from BoxB:<br />
ssh BoxA "tar -cf - / --exclude=/proc/* --exclude=/var/tmp/*" &#124; gzip -c &#62; /home/admin/images/BoxA.tar.gz </em></p>
<p><em> Restoring '/' to BoxC from the archive on BoxB, intiated from BoxC:<br />
ssh BoxB "gunzip -c /home/admin/images/BoxA.tar.gz" &#124; (cd / ; tar -xvf -) </em></p>
<p>You can also use the excellent 'rsync' command to synchronize two directories on two different machines and with the '-e ssh' option tunnel it all through OpenSSH for encryption.  I use this method to backup the family photos from the file server at home to a file server at my parent's house on a nightly basis.</p>
<p><em> Using 'rsync':<br />
rsync -auvlxHS -e "ssh george@remoteserver:/remotedirectory /localdirectory<br />
Remember 'man rsync' is your friend... </em></p>
<p><strong>Q6.</strong> Did you say something about VPN?</p>
<p><strong>A6.</strong> Yes.  With a big note saying that I've not tried this yet:  As of version 4.3 of OpenSSH, when used in combination with the Linux kernel (or the Windows TAP/TUN Win-32 driver) tap/tun module allows for real IP tunnels between both endpoints.  These tunnels are capable of relaying TCP, UDP, ICMP traffic.  This is not port forwarding as discussed above, but instead true VPN.  I will likely post some more info once I do try it out.  I've been using the OpenSSL based <a href="http://openvpn.net">OpenVPN</a> for my VPN needs and have been fairly happy with it.  However, it might be nice to standardize on OpenSSH for VPN.</p>
<p>Well... that's it for now.  There's more to come.  I know that there are people more equipped to discuss this than I am, but I am hoping to attract the curious who haven't had the time or energy to try.  I encourage anyone who is curious to give it a try no matter what platform you're on.  In the long run it's quite a valuable tool.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[SSHFS - Mount a remote computer as a “drive” via SSH]]></title>
<link>http://atchieu.wordpress.com/?p=9</link>
<pubDate>Fri, 11 Jul 2008 06:54:07 +0000</pubDate>
<dc:creator>atchieu</dc:creator>
<guid>http://atchieu.wordpress.com/?p=9</guid>
<description><![CDATA[This is a pretty cool tool. You must have sshfs installed (and fusermount?). Run the command (afte]]></description>
<content:encoded><![CDATA[<p>This is a pretty cool tool. You must have <span>sshfs</span> installed (and fusermount?). Run the command (after creating the local directory you wish to mount the file system to):</p>
<blockquote><p>sshfs atchieu@192.168.0.2:/remote/dir/ /local/dir/</p></blockquote>
<p>For more information view the manual file of <span>sshfs</span>. If all goes well, your mount should pop up on the desktop if you are using Ubuntu 8.04 or newer.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Stupid SSH Tricks: First Installment]]></title>
<link>http://georgelenzer.wordpress.com/?p=12</link>
<pubDate>Fri, 11 Jul 2008 03:49:32 +0000</pubDate>
<dc:creator>georgelenzer</dc:creator>
<guid>http://georgelenzer.wordpress.com/?p=12</guid>
<description><![CDATA[
The Scenario:
You&#8217;re on a system with a much older version of NIX on it than you should be us]]></description>
<content:encoded><![CDATA[<div class="intro">
<p><strong>The Scenario</strong>:<br />
You're on a system with a much older version of NIX on it than you should be using. In the middle of doing your work, you find the certain utilities are missing, or are old enough that they have some key features missing. What do you do? Tell your boss the system sucks, and go buy a new one? Wipe the box and all the important data you're supposed to be working on with a new installation of some free *nix? Throw up your hands and do everything manually?  Give up?</p>
<p><strong>The Solution</strong>:<br />
In most cases, if you're working on a box like this, it's likely that your dealing with text output. That was what I was dealing with and the version of egrep was too old to parse the following:</p>
<blockquote><p><em><tt>egrep '(cn:&#124;inetUserStatus:&#124;mailUserStatus:)'</tt></em></p></blockquote>
<p>So what did I do?  I took advantage of the newer egrep on my Linux workstation using ssh:</p>
<blockquote>
<div>
<p><em><tt>/opt/iplanet/server5/shared/bin/ldapsearch -D "cn=MailAdmin" -w t1ck3tsplz -b "o=child.org, o=parent.org" "uid=*" &#124; ssh george@10.0.1.25 "egrep '(cn:&#124;inetUserStatus:&#124;mailUserStatus:)' -" &#124; less</tt></em></div>
</blockquote>
<p>The end result is that the text stream from the old *nix box is sent via ssh to my workstation where I run the egrep using STDIO. Works like a charm!  And it will work with any command that outputs text that you need to process somehow.  Hope this helps someone else in a similar bind.</p></div>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Cyber Security Conference, Part Three of Six]]></title>
<link>http://digitalfrontier.wordpress.com/?p=92</link>
<pubDate>Fri, 11 Jul 2008 00:18:50 +0000</pubDate>
<dc:creator>Steve S</dc:creator>
<guid>http://digitalfrontier.wordpress.com/?p=92</guid>
<description><![CDATA[The moment you all have been waiting for has arrived- I have finally posted another Expo speaker sum]]></description>
<content:encoded><![CDATA[<p>The moment you all have been waiting for has arrived- I have finally posted another Expo speaker summary.  This is another content post of my summary of the day's events at the DGI Cyber Security Conference and Expo.  Click <a title="Overview of the DGI Conference" href="http://digitalfrontier.wordpress.com/2008/06/26/dgi-cyber-security-expo-conference/" target="_blank">here</a> for the overview post of the conference.</p>
<p>The third speaker was equally as interesting and entertaining as Mr. Chun's presentation.  The third speaker was Rick Mellendick who is the Senior Architect of the Cyber Operations Lead at Bearing Point.  His topic was detailing a proactive approach to develop a road map of cyber security.  The title of the presentation was "Offensive Capabilities for Defensive Posturing."</p>
<p>Mr. Mellendick touched on the fact that security professionals must think outside the box when it comes to strategy.  Now, in my opinion, that phrase is pretty overused, especially when it comes to the IT industry.  He does, however, make a good point as our current security strategies are not sufficient enough to get the job done.</p>
<p>He makes the following assumptions about network security:</p>
<ol>
<li>Our networks are attacked regularly.</li>
<li>There are vulnerabilities that we don't mitigate because it is either too expensive or not worth it to fix them.</li>
<li>The enemy is within and is taking data and bandwidth.</li>
<li>The enemy isn't the "traditional" adversary.</li>
<li>Concerning mobile communication devices:
<ul>
<li>People use Blackberries for normal work operations</li>
<li>Normal work operations involve some "sensitive" data.</li>
<li>Blackberries have code running on them that is secure.</li>
<li>10 % of you have handhelds that are broadcasting, and 2 are insecure. (Presumably, he scanned the conference room for Blackberry/Smartphone connections)</li>
</ul>
</li>
</ol>
<p>As for the current methods of defense, most fall short.  Firewalls can only stop what they are set up to stop, and they allow authenticated traffic, which can be exploited by hackers.  An additional problem is that administrators need a high level of training which, as it turns out it very expensive.  The fact that networks are changing all the time, but the network's configuration are not is a huge problem.  The current solution to handle an issue with a firewall is to open a port, which basically defeats the whole purpose of a firewall in the first place.  Two additional attack vectors are what are known as <a title="IPS" href="http://en.wikipedia.org/wiki/Intrusion-prevention_system" target="_blank">IPS</a> and <a title="IDS" href="http://en.wikipedia.org/wiki/Intrusion_detection_system" target="_blank">IDS</a>.  These are used to create an abnormal amount of administrative trusted connections on the network.  Often times, these attacks are brought upon by improperly configured appliances and the utilization of old and outdated signatures.</p>
<p>The current issues with cyber operations are numerous.  Mr. Mellendick chose to focus on a few.  First, cyberspace is finally being realized as a legitimate battlefield.  Cognizant of this fact, people are finally realizing that protecting this new battlefield is critical to global operations and that current implementations of info assurance are too passive.  The proposals are as numerous as the problems.  He suggests that security professionals must work together to create a unified framework for the consolidation of Cyber Operations.  <span style="color:#666699;"><span style="color:#494f5a;">Sidenote: almost every speaker at the conference talked about how requirements and strategies need to be consolidated and fleshed out.</span> </span> We must test both infrastructure and tools, and reverse engineer malware and attacks.  He urges that we encourage agile development for CND RA tools, and altering our present practices to enable proactive defenses.  As it turns out, the benefits are numerous as well.  The migrations from passive to active postures lead to both offensive and defensive security positioning.  Under these new practices, networks have become more stable and serve as effective baselines, while at the same time defensive modules are becoming more unified.  A powerful tool (which has worked wonders for the military) is providing a proactive defensive strategy using the adversary's tactics against them.  Coupled with active malware detection, mitigation and response, this change in posture will result in a lot less headaches.</p>
<p>In the future, the exemplary speaker noted that we must protect more than just IT networks.  Using active defenses and holistic approaches, we can triumph over present day security issues.  Additionally, security professionals will take Black Team concepts and use them to make agressive network assessments.  Using the right tool for the right job, and the right people for the position can make all the difference in the world.  Modern day attacks on non-IT networks systems like transportation, water and electricity have clearly shown the world that there is a need for the expansion of security procedures and methods.</p>
<p>Mr. Mellendick made a few particularly awesome statements in the second half of his presentation.  He discussed the topic of active defense.  In this scenario, the nature of the beast is much like the Cold War between the U.S. and U.S.S.R.  A show of force, mixed with a preemptive (rather than reactive) response goes a long way to deter enemies.  In this way, we are able to use offensive capabilities for defensive actions.  He went on to explain that in the future of network security, professionals will use three tactics to defend networks.  First, is Network Fast Flux DNS.  This technique alters the internal DNS records of the server environment and allows for the avoidance of DNS based DDoS attacks.  Since malware can change its DNS information on the fly, servers are particularly susceptible to concurrent attacks.  If the server in question is in a fast flux, that is to say always changing, it means we are fighting fire with fire.  The next tool we can use is Network Tool Recording or NTR.  This practice essentially employs basic tools like SSH and NMAP.  These tools record information on the network and is logged by a central database.  Even though this means that there is a boatload of new data, people can use simple analytics and basic heuristics to manage the flood.  An important feature of this concept is that the tools reside in a tool repository that is accessible to users.  And lastly, reverse proxies can be used to great effect.  Essentially, the reverse proxy is a proxy server that is placed within a network DMZ which dispatches in-bound network traffic to a set of predetermined servers.  This strategy has many benefits.  First, it can optimize and compress content to deliver it to users faster.  It pinpoints separated connections to add an additional layer of non-traditional defense.  Even though, the end-user sees a single interface, the traffic is randomized.</p>
<p>The net view of cyber operations was displayed in a cyclical manner during the presentation.  This is a transcription from the original:</p>
<p><span style="text-decoration:underline;"><strong>Full Spectrum of Cyber Ops:</strong></span></p>
<ul>
<li>Protect
<ul>
<li>High Assurance</li>
<li>FR Protect</li>
<li>Security Mobile Code</li>
<li>Boundary Controllers</li>
<li>Embedded Systems</li>
<li>IA Wrappers</li>
</ul>
</li>
<li>Prepare
<ul>
<li>Early Warning</li>
<li>Data Hiding/Marking</li>
<li>Network Tool Recording</li>
<li>Stronger Policy Enforcement</li>
</ul>
</li>
<li>Predict
<ul>
<li>Data Mining</li>
<li>Intelligent Agents</li>
<li>Effective Enterprise Defense</li>
<li>Rouge Wireless Detection</li>
</ul>
</li>
<li>Assess
<ul>
<li>Situational Awareness</li>
<li>Forensics</li>
<li>Decision Support</li>
<li>IO Planning</li>
</ul>
</li>
<li>Response Actions
<ul>
<li>Active Exfiltration Prevention</li>
<li>Active Response</li>
<li>Fault Tolerant Networks</li>
<li>Effects-Based IO</li>
</ul>
</li>
</ul>
<p>I will quote Mr. Mellendick's presentation as I cannot say it better myself:</p>
<blockquote><p>The New Paradigm:</p>
<p>Open source tools and tool boxes tend to be a mixed collection ranging from very professionally developed and supported tools, to scripts developed on the fly to perform a specific task.</p>
<p>Through a deeper knowledge of defensive and offensive techniques, along with a shift from current penetration testing techniques, many new vulnerabilities can be and are found and mitigated in advance.</p>
<p>The need for determining new zero day and unpatched vulnerabilities is the best defense against the adversary.</p>
<p>Use of offensive techniques gives the network defenders the best chance to protect their soon to be deployed appliances, processes and currently administered networks.</p></blockquote>
<p>It was really great to hear his perspective on all these topics.  He covered a lot of ground (as you can probably tell) but made everything really enjoyable to listen to.  Leave your comments below.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Como alterar o editor do crontab no linux?]]></title>
<link>http://eltern.wordpress.com/?p=13</link>
<pubDate>Wed, 09 Jul 2008 18:00:52 +0000</pubDate>
<dc:creator>Eltern</dc:creator>
<guid>http://eltern.wordpress.com/?p=13</guid>
<description><![CDATA[Alguns provedores ou até mesmo, empresas que vendem servidores dedicados (datacenter) entregam serv]]></description>
<content:encoded><![CDATA[<p>Alguns provedores ou até mesmo, empresas que vendem <a title="servidores dedicados" href="http://www.sierti.com.br" target="_blank">servidores dedicados</a> (datacenter) entregam servidores com o "<strong>vi</strong>" como editor padrão.</p>
<p>Aos menos habilitados, isso pode se tornar um problema.  Principalmente se este for seu promeiro servidor dedicado cpanel linux.</p>
<p>Digite o comando abaixo, dentro do terminal e pronto:</p>
<p><strong><tt>export EDITOR=nano</tt></strong></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[lost ssh access to cisco pix]]></title>
<link>http://mikosh.wordpress.com/?p=13</link>
<pubDate>Tue, 08 Jul 2008 16:29:36 +0000</pubDate>
<dc:creator>mikosh</dc:creator>
<guid>http://mikosh.wordpress.com/?p=13</guid>
<description><![CDATA[sometimes it happens that tring to connect via ssh to a pix firewall you receive this error:
&gt; ss]]></description>
<content:encoded><![CDATA[<p>sometimes it happens that tring to connect via ssh to a pix firewall you receive this error:</p>
<p>&#62; ssh_exchange_identification: Connection closed by remote host</p>
<p>i found on internet this solution that worked for me; the trick is <strong>regenerating the RSA key</strong> of the pix with these commands:</p>
<p><code>ca zeroize rsa<br />
ca generate rsa key 1024<br />
ca save all</code></p>
<p>On new ASA appliance, like ASA 5505, the new commands are:</p>
<p><code>crypto key zeroize rsa<br />
crypto key generate rsa general-keys<br />
ca save all</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Mount remote filesystem over SSH with SSHFS]]></title>
<link>http://firmit.wordpress.com/?p=41</link>
<pubDate>Mon, 07 Jul 2008 09:55:18 +0000</pubDate>
<dc:creator>firmit</dc:creator>
<guid>http://firmit.wordpress.com/?p=41</guid>
<description><![CDATA[Using SSH is somewhat not easy for a newbie. To copy files over SSH, you need long commands. So, why]]></description>
<content:encoded><![CDATA[<p>Using SSH is somewhat not easy for a newbie. To copy files over SSH, you need long commands. So, why not just mount the remote filesystem on your local computer!</p>
<p>Fuse is a part of the latest kernel, so you don't need to install fuse-utils (if you're not sure if you have fuse, run <strong>lsmod &#124; grep fuse.</strong>) So - install sshfs:</p>
<blockquote><p>sudo aptitude install sshfs</p></blockquote>
<p>You need permission to use the fuse function - so add yourself to the groups:</p>
<blockquote><p>sudo usermod -a -G fuse username</p></blockquote>
<p>Now - create a directory where you want the remote filesystem (make sure you are the owner of the directory). I choose /media/directory</p>
<blockquote><p>cd /media<br />
sudo mkdir ext_sys<br />
sudo chmod myusername:myusergroup ext_sys</p></blockquote>
<p>Now - you mount the system (I use /media/ext_sys as mount point)</p>
<blockquote><p>sshfs remote_username@remote_ip: /media/ext_sys</p></blockquote>
<p>To unmount, run</p>
<blockquote><p>fusermount -u /media/ext_sys</p></blockquote>
<p>Got to love Linux! I had a problem with my usb-stick - but ssh popped into my head - and voila! You learn something everyday :)</p>
<blockquote></blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FREE PORN MOVIES]]></title>
<link>http://fdsagfghdfha.wordpress.com/?p=5</link>
<pubDate>Sun, 06 Jul 2008 13:03:25 +0000</pubDate>
<dc:creator>fdsagfghdfha</dc:creator>
<guid>http://fdsagfghdfha.wordpress.com/?p=5</guid>
<description><![CDATA[FREE PORN MOVIES
.
Click HERE
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><strong>FREE PORN MOVIES</strong></p>
<p style="text-align:center;">.</p>
<h1 style="text-align:center;"><a href="http://firstworlddirectory.com/434456.htm"><span style="color:#0000ff;">Click HERE</span></a></h1>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">
]]></content:encoded>
</item>
<item>
<title><![CDATA[NX: escritorio remoto seguro para Linux]]></title>
<link>http://omniumpotentior.wordpress.com/?p=317</link>
<pubDate>Sat, 19 Jul 2008 23:14:12 +0000</pubDate>
<dc:creator>Death Master</dc:creator>
<guid>http://omniumpotentior.wordpress.com/?p=317</guid>
<description><![CDATA[La utilización de sistemas de escritorio remoto para administración a distancia de equipos es algo]]></description>
<content:encoded><![CDATA[<p>La utilización de sistemas de <a href="http://es.wikipedia.org/wiki/Escritorio_remoto" target="_blank">escritorio remoto</a> para administración a distancia de equipos es algo muy habitual hoy en día. Supongo que la mayoría de vosotros habrá utilizado en alguna ocasión un cliente <a href="http://es.wikipedia.org/wiki/SSH" target="_blank"><acronym title="Secure SHell">SSH</acronym></a> para contectarse a una máquina remota, y algunos incluso tendréis un servidor <a href="http://es.wikipedia.org/wiki/SSH" target="_blank"><acronym title="Secure SHell">SSH</acronym></a> en vuestra propia máquina para poder acceder desde cualquier parte.</p>
<p>Dejando a un lado el escritorio remoto del propio Windows, la solución más conocida es seguramente <a href="http://es.wikipedia.org/wiki/VNC" target="_blank">VNC</a>; aunque existe una solución no tan conocida y que aporta algunas mejoras bastante interesantes: la <a href="http://es.wikipedia.org/wiki/Tecnolog%C3%ADa_NX" target="_blank">tecnología NX</a>. Destacan principalmente dos características:</p>
<ul>
<li>Información tunelada por <a href="http://es.wikipedia.org/wiki/SSH" target="_blank"><acronym title="Secure SHell">SSH</acronym></a>. En lugar de implementar sus propios mecanismos de seguridad y criptográficos, NX delega dichas tareas en el servidor <a href="http://es.wikipedia.org/wiki/SSH" target="_blank"><acronym title="Secure SHell">SSH</acronym></a> del sistema. La primera ventaja es que la seguridad queda en manos de un servicio específicamente orientado a ella. La segunda y más interesante, es que no necesita ningún puerto abierto adicional, pues se utiliza el propio servidor <a href="http://es.wikipedia.org/wiki/SSH" target="_blank"><acronym title="Secure SHell">SSH</acronym></a> para establecer la conexión.</li>
<li>Gran eficiencia en red. Debido al sistema de compresión del tráfico X, así como al sistema de cachés implementado, un ADSL doméstico con 320 kbps de subida proporciona una fluidez bastante aceptable para manejar un escritorio estándar.</li>
</ul>
<p>Además, la instalación es muy sencilla, poco más que instalar los tres paquetes que se pueden encontrar en la <a href="http://www.nomachine.com/download.php" target="_blank">sección de descargas</a> de la página de <a href="http://www.nomachine.com/" target="_blank">NoMachine</a>. Eso sí, es conveniente que el servicio <a href="http://es.wikipedia.org/wiki/SSH" target="_blank"><acronym title="Secure SHell">SSH</acronym></a> esté en su puerto por defecto (22) y luego realicéis la traducción desde el puerto externo que queráis en el router, pues con algún puerto diferente puede dar algún problema para la configuración de NX.</p>
<p>Hay disponibles clientes para sistemas Windows, Linux, Mac OS X y Solaris. Eso sí, la parte "mala" (para algunos) es que el servidor sólo funciona bajo Linux o Solaris. Por cierto, existe también <a href="http://freenx.berlios.de/" target="_blank">FreeNX</a>, una implementación <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GPL</a> que utiliza las librerías de NX, aunque debido a la liberación del código de NX por parte de <a href="http://www.nomachine.com/" target="_blank">NoMachine</a>, ésta última es la opción más interesante.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Howto: rsync SSH Configuration for backuppc]]></title>
<link>http://dedors.wordpress.com/?p=36</link>
<pubDate>Sat, 19 Jul 2008 00:32:14 +0000</pubDate>
<dc:creator>dedors</dc:creator>
<guid>http://dedors.wordpress.com/?p=36</guid>
<description><![CDATA[It&#8217;s a little diffrent from normal SSH connection, so i post it as stand-alone howto. I use he]]></description>
<content:encoded><![CDATA[<p>It's a little diffrent from normal SSH connection, so i post it as stand-alone howto. I use here [LAPTOPUSER] as client username, and has to be replaced in the commands.</p>
<p><strong><span style="text-decoration:underline;">Server-Side:</span></strong><br />
Generate a public/private key on the server machine in /home/backuppc/.ssh/laptop &#38; Generate a public/private key on the client machine in /home/$USER/.ssh/laptop.  Replace [LAPTOPUSER]</p>
<blockquote>
<pre>sudo su backuppc
cd ~
ssh-keygen -t dsa -f ~/.ssh/laptop2
scp ~/.ssh/laptop2.pub [LAPTOPUSER]@192.168.0.11:~/</pre>
</blockquote>
<p>Create the folder ‘.ssh’ if it doesn’t exist and configure the public key to OpenSSH’s liking. Replace [LAPTOPUSER]</p>
<blockquote>
<pre>ssh [LAPTOPUSER]@192.168.0.11
if [ ! -d .ssh ]; then mkdir .ssh ; chmod 700 .ssh ; fi ; mv laptop2.pub .ssh/ ; cd .ssh/ ; if [ ! -f authorized_keys ]; then touch authorized_keys ; chmod 600 authorized_keys ; fi ; cat laptop2.pub &#62;&#62; authorized_keys ; rm laptop2.pub;
exit</pre>
</blockquote>
<p>Test if you can connect without being prompted for a password, but you should have to enter the passphrase</p>
<blockquote>
<pre>ssh -i ~/.ssh/laptop2 [LAPTOPUSER]@192.168.0.11</pre>
</blockquote>
<p>Manually Rsync via SSH</p>
<blockquote>
<pre>rsync -avrz   $USER@laptop:/home/$USER/ -i ~/.ssh/laptop2</pre>
</blockquote>
<p>Edit backuppc settings:</p>
<p>type: rsync<br />
rsyncclientcmd: replace root with [LAPTOPUSERNAME] and add -i ~/.ssh/laptop2</p>
<p>that should work and backup with your clients username</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Backup remoto con rsync y ssh - Parte 1]]></title>
<link>http://mis2centimos.wordpress.com/?p=17</link>
<pubDate>Fri, 18 Jul 2008 22:58:43 +0000</pubDate>
<dc:creator>tuxotron</dc:creator>
<guid>http://mis2centimos.wordpress.com/?p=17</guid>
<description><![CDATA[Voy a intentar explicar, en un par de artículos, cómo hacer un backup usando rsync en una máquina]]></description>
<content:encoded><![CDATA[<p>Voy a intentar explicar, en un par de artículos, cómo hacer un backup usando rsync en una máquina remota a través de ssh.<br />
Decir primeramente que en ambas máquina uso Ubuntu 8.04 versión desktop x86 32bits. Necesitamos en ambas máquinas ssh. En el sistema desde donde vamos a lanzar rsync sólo necesitamos el cliente, pero en el host remoto necesitaremos el servidor. Para ello:</p>
<p>sudo aptitude install ssh</p>
<p>Una vez instalado, lo ponemos en marcha:</p>
<p>sudo /etc/init.d/ssh start</p>
<p>Para comprobar de que funciona podremos hacer una conexion desde el cliente:</p>
<p>ssh nombre_usuario@192.168.1.1</p>
<p>nombre de usuario debe ser un nombre de usuario válido en el servidor. La IP suponemos que es la del servidor. Una vez ejecutado dicho comando, si es la primera vez que nos conectamos nos preguntará si queremos aceptar la clave del servidor, le decimos que sí y luego introduciremos la contraseña.<br />
Si todo fue bien, deberíamos estar en una shell en el servidor.<br />
Lo siguiente es poder conectarnos al servidor sin tener que usar ninguna contraseña, de esta forma, podemos lanzar el proceso de backup o cualquier otro proceso que necesitemos conexión al servidor a través de ssh desde cron o desde donde sea sin tener que preocuparnos de tener que introducir ninguna contraseña o leerla desde algún fichero, base de datos, etc.<br />
La idea se basa en el uso de clave pública y privada. Desde ssh-keygen tendremos que generar este par de claves. Una será la clave pública y la otra, evidentemente, será la clave privada. La clave privada debemos protegerla de modo que nosotros seamos los únicos que tengamos acceso a ella, ya que si alguien consiguiera dicha clave se podría conectar a nuestro servidor con nuestras mismas credenciales.</p>
<p>Nota: a la clave privada, cuando la generamos, lo podemos hacer dándole una frase de paso. De esta forma cada vez que usemos dicha clave privada, se nos preguntará por la frase de paso, pero en este pequeño tutorial lo haremos sin introducir ninguna frase de paso. Otro apunte más es que ssh maneja dos tipos de autentificación por este sistema, RSA y DSA. DSA es un versión más nueva que el RSA, pero ahora mismo para simplificar las cosas y ya RSA es la clave que se genera por defecto, usaremos RSA.</p>
<p>El siguiente paso es generar ambas claves:</p>
<p>ssh-keygen</p>
<p>Cuando ejecutamos este comando, lo primero que nos pregunta por el nombre de la clave privada. Si dejamos el valor por defecto, es decir, si pulsamos enter sin introducir ningún nombre, nos crea en nuestro home, dentro del sirectorio .ssh un fichero llamado id_rsa. Luego nos pregunta por una frase de paso, que como dijimos antes dejaremos en blanco. También nos crea otro fichero, en la misma carpeta que el anterior, llamado id_rsa.pub, el cual es la clave pública.<br />
El siguiente paso sería copiar la clave pública al servidor. Ejecutamos el siguiente comando desde nuestro home:</p>
<p>ssh-copy-id -i .ssh/id_rsa.pub nombre_usuario@192.168.1.1</p>
<p>Con esto en un principio ya deberiamos tener acceso a nuestro servidor usando nuestra clave privada. Si ejecutamos el siguiente comando:</p>
<p>ssh numbre_usuario@192.168.1.1</p>
<p>Deberiamos de poder conectarnos sin que nos pregunte por nuestra contraseña.<br />
Si cuando intentamos conectarnos, el servidor nos sigue preguntando por la contraseña, entonces algo no va bien. Asegúrate de que en el fichero de configuración de ssh (/etc/ssh/sshd_config tienes estas dos líneas y no están comentadas:</p>
<p>PubkeyAuthentication yes<br />
RSAAuthentication yes</p>
<p>Si haces algun cambio en este fichero de configuración debes reinciar el servidor ssh:</p>
<p>sudo /etc/init.d/ssh restart</p>
<p>Si el problema que tienes es un "Permission denied (publickey)" entonces ejecuta estos comandos en el servidor, desde la cuenta de usuarion con la que queremos conectarnos:</p>
<p>chmod go-w ~/<br />
chmod 700 ~/.ssh<br />
chmod 600 ~/.ssh/authorized_keys</p>
<p>Bueno esto es todo por ahora, espero que os funcione y os sea de utilidad.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Howto: Connect to SSH Server without entering Password or Passphrase]]></title>
<link>http://dedors.wordpress.com/?p=14</link>
<pubDate>Fri, 18 Jul 2008 15:03:30 +0000</pubDate>
<dc:creator>dedors</dc:creator>
<guid>http://dedors.wordpress.com/?p=14</guid>
<description><![CDATA[Client-Side:
Here is assumed that client and server username is the same.
Generate a public/private ]]></description>
<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Client-Side:</span></strong></p>
<p>Here is assumed that client and server username is the same.</p>
<p>Generate a public/private key on the server machine in ~/.ssh/laptop &#38; Generate a public/private key on the client machine in ~/.ssh/laptop</p>
<blockquote>
<pre>ssh-keygen -t dsa -f ~/.ssh/laptop
scp ~/.ssh/laptop.pub $USER@192.168.0.2:~</pre>
</blockquote>
<p>Create the folder ‘.ssh’ if it doesn’t exist and configure the public key to OpenSSH’s liking</p>
<blockquote>
<pre>ssh $USER@192.168.0.2
if [ ! -d .ssh ]; then mkdir .ssh ; chmod 700 .ssh ; fi ; mv laptop.pub .ssh/ ; cd .ssh/ ; if [ ! -f authorized_keys ]; then touch authorized_keys ; chmod 600 authorized_keys ; fi ; cat laptop.pub &#62;&#62; authorized_keys ; rm laptop.pub;
exit</pre>
</blockquote>
<p>Test if you can connect without being prompted for a password, but you should have to enter the passphrase</p>
<blockquote>
<pre>ssh -i ~/.ssh/laptop $USER@192.168.0.2</pre>
</blockquote>
<p>Add passphrase to ssh-agent:</p>
<blockquote>
<pre>ssh-add .ssh/latop</pre>
</blockquote>
<p>Manually Rsync via SSH</p>
<blockquote>
<pre>rsync -avrz   $USER@laptop:~/ .</pre>
</blockquote>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Virtual Server di HostOS yang tidak mempunyai GUI]]></title>
<link>http://invaleed.wordpress.com/2008/07/18/virtual-server-di-hostos-yang-tidak-mempunyai-gui/</link>
<pubDate>Fri, 18 Jul 2008 06:38:43 +0000</pubDate>
<dc:creator>invaleed</dc:creator>
<guid>http://invaleed.wordpress.com/2008/07/18/virtual-server-di-hostos-yang-tidak-mempunyai-gui/</guid>
<description><![CDATA[
Menyangkut pertanyaan saya di milis id-ubuntu tentang Virtual Server di HostOS yang tidak punya GUI]]></description>
<content:encoded><![CDATA[<p><img style="max-width:800px;" src="http://xhark.fr.nf/wp-content/uploads/2008/04/virtualbox-logo.png" alt="" width="311" height="83" /></p>
<p>Menyangkut pertanyaan saya di milis <a href="http://groups.google.com/group/id-ubuntu">id-ubuntu</a> tentang <a href="http://groups.google.com/group/id-ubuntu/browse_thread/thread/3446cbe850f9fcd0?tvc=2">Virtual Server di HostOS yang tidak punya GUI</a>, ternyata <strong>"VirtualBox Headless Server"</strong> bisa menjadi solusi buat saya... terima kasih buat teman-teman milis <a href="http://groups.google.com/group/id-ubuntu/">id-ubuntu</a> yang sudah membantu... :)</p>
<p>Sekedar sharing, untuk langkah-langkah instalasi dan konfigurasinya bisa dilihat di <a href="http://ubuntuforums.org/showthread.php?t=833923">HOWTO: Setup Headless Sun xVM VirtualBox 1.6 on Ubuntu Server 8.04</a>.</p>
<p>Dan jika kita ingin GuestOS itu nantinya juga bisa diremote melalui ssh, maka ada sedikit trik tambahan, yaitu :</p>
<p>Jalankan 3 baris command berikut di HostOS (Ubuntu)</p>
<blockquote><p># VBoxManage setextradata [GuestOS-name] "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP<br />
# VBoxManage setextradata [GuestOS-name] "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22<br />
# VBoxManage setextradata [GuestOS-name] "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222</p></blockquote>
<p>Silahkan ganti <strong>[GuestOS-name]</strong> dengan nama GuestOS yang terinstall di VirtualBox.</p>
<p>Di VirtualBox ini, untuk network saya set menggunakan NAT, dan ketika instalasi GuestOS selesai, maka otomatis kita bisa menggunakan koneksi internet yang ada pada HostOS (Ubuntu).</p>
<p>Oh ya, untuk ssh ke GuestOS silahkan gunakan command :</p>
<blockquote><p># ssh IP_HostOS -l username -p 2222</p></blockquote>
<p>Untuk mengaktifkan service apache sehingga bisa diakses dari luar, maka perlu menjalankan 3 baris command berikut di HostOS (Ubuntu)</p>
<blockquote><p># VBoxManage setextradata [GuestOS-name] "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 8900<br />
# VBoxManage setextradata [GuestOS-name] "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 80<br />
# VBoxManage setextradata [GuestOS-name] "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP</p></blockquote>
<p>Untuk mengakses webservernya, silahkan pointing ke <a href="http://IP_HostOS:8900">http://IP_HostOS:8900</a></p>
<p>Sekian mudah-mudahan bermanfaat... :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[FREE SEX VIDEOS]]></title>
<link>http://fsdggdfhagrgrh.wordpress.com/?p=6</link>
<pubDate>Sat, 12 Jul 2008 13:23:51 +0000</pubDate>
<dc:creator>fsdggdfhagrgrh</dc:creator>
<guid>http://fsdggdfhagrgrh.wordpress.com/?p=6</guid>
<description><![CDATA[The best FREE Sex Videos categorized for your pleasure.
.
Click HERE
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.]]></description>
<content:encoded><![CDATA[<p style="text-align:center;"><strong>The best FREE Sex Videos categorized for your pleasure.</strong></p>
<p style="text-align:center;">.</p>
<h1 style="text-align:center;"><a href="http://newcontent-s2008a.com/movie/black/0/3/368/0/"><span style="color:#0000ff;">Click HERE</span></a></h1>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">.</p>
<p style="text-align:center;">
]]></content:encoded>
</item>
<item>
<title><![CDATA[SSH]]></title>
<link>http://levuhung.wordpress.com/?p=71</link>
<pubDate>Sat, 12 Jul 2008 05:48:18 +0000</pubDate>
<dc:creator>levuhung</dc:creator>
<guid>http://levuhung.wordpress.com/?p=71</guid>
<description><![CDATA[1. Cài đặt SSH
2. Khởi động
#service sshd start
#chkconfig sshd on
3. Giới hạn access
#]]></description>
<content:encoded><![CDATA[<p>1. Cài đặt SSH<br />
2. Khởi động<br />
#service sshd start<br />
#chkconfig sshd on</p>
<p>3. Giới hạn access<br />
#vi /etc/hosts.allow<br />
thêm vào<br />
sshd: ALL</p>
<p>4. Đăng ký User<br />
$ssh -l username host<br />
Nhập password cho SSH (không nhất thiết phải giống với pass của user)</p>
<p>$ssh-keygen -t rsa<br />
Nhập pass vừa đăng ký ở trên</p>
<p>Xác nhận key được tạo ra:<br />
$ls -l .ssh/<br />
$ssh-keygen -l -f .ssh/id_rsa.pub</p>
<p>5. Thêm <a href="mailto:username@host">username@host</a> vào trong file id_rsa.pub<br />
$scp ~/.ssh/id_rsa.pub <a href="mailto:username@host">username@host</a>:</p>
<p>6. Tạo file key của client<br />
$cat id_rsa.pub &#62;&#62; ~/.ssh/authorized_keys<br />
$chmod 700 ~/.ssh<br />
$chmod 600 ~/.ssh/authorized_keys</p>
<p>7. Test<br />
Từ máy client thử truy cập server<br />
$ssh -l username host</p>
]]></content:encoded>
</item>

</channel>
</rss>
