<?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>Fri, 10 Oct 2008 19:55:14 +0000</pubDate>

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

<item>
<title><![CDATA[SSH filesystem]]></title>
<link>http://paragasu.wordpress.com/?p=100</link>
<pubDate>Fri, 10 Oct 2008 00:16:40 +0000</pubDate>
<dc:creator>paragasu</dc:creator>
<guid>http://paragasu.ru.wordpress.com/2008/10/10/ssh-filesystem/</guid>
<description><![CDATA[mount remote filesystem via ssh. it is develop using fuse by Miklos Szeredi
 sshfs project page 
 fu]]></description>
<content:encoded><![CDATA[<p>mount remote filesystem via ssh. it is develop using fuse by Miklos Szeredi</p>
<p><a href="http://fuse.sourceforge.net/sshfs.html"> sshfs project page </a><br />
<a href="http://fuse.sourceforge.net/"> fuse project page </a><br />
<a href="http://fuse.sourceforge.net/wiki/index.php/FileSystems"> List of filesystem develop using fuse </a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[NSLU2: Using sftp-server with bash as shell]]></title>
<link>http://primalcortex.wordpress.com/?p=110</link>
<pubDate>Thu, 09 Oct 2008 21:09:17 +0000</pubDate>
<dc:creator>primalcortex</dc:creator>
<guid>http://primalcortex.ru.wordpress.com/2008/10/09/nslu2-using-sftp-server-with-bash-as-shell/</guid>
<description><![CDATA[I&#8217;ve installed the bash shell on my Linksys NSLU2, and replaced the root&#8217;s shell with ba]]></description>
<content:encoded><![CDATA[<p>I've installed the bash shell on my Linksys NSLU2, and replaced the root's shell with bash by editing the /etc/passwd file.</p>
<p>It worked fine, until I noticed that scp'ing to the NSLU2 didn't work anymore... Reverting back to the sh shell, scp started to work again... The error was right after startup of scp it replied with "Connection closed". No info on logs, what so ever.</p>
<p>I'm running SlugOS, and according to this thread: <a href="http://tech.groups.yahoo.com/group/nslu2-general/message/6537">http://tech.groups.yahoo.com/group/nslu2-general/message/6537</a> it looked like a bash version bug.</p>
<p>Indeed I did have version 3.2-r2 installed... and so it would not work.</p>
<p>Because I have the optware repository enabled ( <a href="http://www.nslu2-linux.org/wiki/Optware/Slugosbe">http://www.nslu2-linux.org/wiki/Optware/Slugosbe</a>) I've checked that the bash version on this repository was newer. So:</p>
<p>- ipkg remove bash</p>
<p>- ipkg-opt install bash</p>
<p>- cp /opt/bin/bash /bin/bash</p>
<p>And while mantaining an open session, changed the shell to bash on one user and tried to logon. It worked.</p>
<p>And scp? It worked also, so with my finger's crossed, I've changed again the root shell to bash, and logon on a new session. No problem. Indeed scp worked right away also.</p>
<p>So if any problems with scp failing, just upgrade your bash version.</p>
<p>Key words: sftp-server bash connection closed failed error 0</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Copiar mediante ssh (scp)]]></title>
<link>http://santylovetux.wordpress.com/?p=7</link>
<pubDate>Thu, 09 Oct 2008 20:15:29 +0000</pubDate>
<dc:creator>santylovetux</dc:creator>
<guid>http://santylovetux.ru.wordpress.com/2008/10/09/copiar-mediante-ssh-scp/</guid>
<description><![CDATA[Una orden pequeñita para copiar por ssh, para recordarla, más que nada:
Para copiar desde otro PC ]]></description>
<content:encoded><![CDATA[<p>Una orden pequeñita para copiar por ssh, para recordarla, más que nada:</p>
<p>Para copiar desde otro PC al nuestro:</p>
<p><em>$<strong> scp -rv usuario_origen@host_origen:ruta_origen ruta_destino</strong></em></p>
<p>Para copiar desde nuestro ordenador a otro:</p>
<p><em>$ <strong>scp -rv ruta_origen usuario_destino@host_destino:ruta_destino</strong></em></p>
<p>Nota: se necesita la contraseña del otro host para poder acceder a él.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Connection closed by remote host: ssh_exchange_identification]]></title>
<link>http://egloo.wordpress.com/?p=161</link>
<pubDate>Thu, 09 Oct 2008 18:53:01 +0000</pubDate>
<dc:creator>pcabrerat</dc:creator>
<guid>http://egloo.ru.wordpress.com/2008/10/09/connection-closed-by-remote-host-ssh_exchange_identification/</guid>
<description><![CDATA[Often when a process that uses SSH runs in a regular basis, you may get a &#8220;Connection closed b]]></description>
<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-162" title="ssh_connection" src="http://egloo.wordpress.com/files/2008/10/untitled.png" alt="" width="252" height="252" />Often when a process that uses SSH runs in a regular basis, you may get a "<strong>Connection closed by remote host</strong>" error.</p>
<p>For example, in my case I was using a <a href="http://nagios.org">Nagios </a>based monitor that needed to connect to a group oh hosts and from time to time I got bursts of this error when trying to access the monitored machines.</p>
<p>This is an example of the log file:</p>
<p><code>10 13:43:02  hoard04 [2]: Protocol error. ssh is complaining, see next<br />
message. #d83bb35 (ssh_common.c 427)<br />
10 13:43:02  hoard04 [2]: ssh_exchange_identification: Connection<br />
closed by remote host</code></p>
<p>Even though the problem solves automatically by just ingnoring it for a while (really) I prefer to fix the problem rather than the symptoms, so with a little help from google I came up with the right solution.</p>
<p>This problem happens when the server hits the <strong>MaxStartups </strong>limit in the <strong>/etc/ssh/sshd_config</strong> file. This value acts as a security measure if for example someone tries to compromise your server with a <a href="http://en.wikipedia.org/wiki/DoS">DoS</a> attack. By default its set to 10 so its relatively easy for SSH to get stuck at 10 connections.</p>
<p>Anyway, to solve the issue you just have to edit the mentioned file and bump the <strong>MaxStartups </strong>limit to, say 25 or 50 if you need a lot of connections.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[No one knows (except the both of us)]]></title>
<link>http://oggihoscopertoche.wordpress.com/?p=183</link>
<pubDate>Thu, 09 Oct 2008 15:05:38 +0000</pubDate>
<dc:creator>oggihoscopertoche</dc:creator>
<guid>http://oggihoscopertoche.ru.wordpress.com/2008/10/09/no-one-knows-except-the-both-of-us/</guid>
<description><![CDATA[Ah - Ah - Ah. Io so un segreto. Anzi, IL Segreto. Grazie ad esso raggiungerò fama e potere e voi r]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;"><a href="http://oggihoscopertoche.wordpress.com/files/2008/10/ssh.jpg"><img class="alignleft size-thumbnail wp-image-173" title="Agnese" src="http://oggihoscopertoche.wordpress.com/files/2008/10/ssh.jpg?w=61" alt="" width="61" height="96" /></a>Ah - Ah - Ah. Io so un segreto. Anzi, <strong>IL Segreto</strong>. Grazie ad esso raggiungerò fama e potere e voi rimarrete a guardare la mia ascesa all'Impero Universale e a quello Ultraterreno in religioso silenzio. E vi dirò di più.. nel 2012 scatenerò l'inferno sulla terra AH AH AH (risata malefica).</p>
<p style="text-align:justify;">Grazie al mio periodo di vacanza, dedito al puro dolce e sano far niente (ma niente niente eh)</p>
<p style="text-align:justify;"> </p>
<blockquote><p>mi lavo con uno straccio avvolto in un bastone</p></blockquote>
<p style="text-align:justify;">mi sono imbattuto per puro caso sul tubo in questo:</p>
<p style="text-align:justify;"> </p>
<p style="text-align:justify;"><span style='text-align:center; display: block;'><object width='425' height='350'><param name='movie' value='http://www.youtube.com/v/MhX7Wc8phWc'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/MhX7Wc8phWc&rel=0' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed></object></span></p>
[caption id="attachment_185" align="alignright" width="167" caption="Un pensatore positivo"]<a href="http://oggihoscopertoche.files.wordpress.com/2008/10/pos.jpg"><img class="size-full wp-image-185 " src="http://oggihoscopertoche.wordpress.com/files/2008/10/pos.jpg" alt="Un pensatore positivo" width="167" height="125" /></a>[/caption]
<p style="text-align:justify;"><strong>Oggi ho scoperto che</strong> conoscendo Il Segreto posso avere tutto ciò che voglio. Zan Zan! La prima cosa che ho pensato è stata: "Paranoia!", la seconda: "Lo voglio sapere subito!". Visto che il mio fondo per i libri è stato dilapidato per I Segreti della Sistina ho cercato, sempre sul tubo, i filmati del dvd allegato. Beh.. ci sono tutti! Ora non li posto perchè sticazzi, se volete ve li cercate, comunque ora io <strong>lo SO</strong>! Pappappero pappappà.</p>
<p style="text-align:justify;">Vabbè mi fate pena: in breve Il Segreto è che bisogna concentrarsi sulle cose positive perchè la "forza dell'attrazione" (che viene spiegata nei filmati) porta a noi le cose che pensiamo.. un po' tipo Genie, ma più complicato. Basta mi sono stufato.</p>
<p style="text-align:justify;">Vi lascio con un'ultima immagine dei magnifici relatori del libro:</p>
[caption id="attachment_184" align="aligncenter" width="649" caption="De Vito - Biscardi - Quello di Notre Dame de Paris - Una mignotta - Cesare Cadeo - Il Vecchio di Jurassic Park - Belli Capelli"]<a href="http://oggihoscopertoche.files.wordpress.com/2008/10/tutti.jpg"><img class="size-full wp-image-184 " src="http://oggihoscopertoche.wordpress.com/files/2008/10/tutti.jpg" alt="De Vito - Biscardi - QUello di Notre Dame de Paris - Una mignotta - Cesare Cadeo - Il Vecchio di Jurassic Park - Belli Capelli" width="649" height="77" /></a>[/caption]
<p><span style="color:#ff6600;"><strong>EDIT:</strong> il post è di ieri, solo che ho fatto casino con le immagini, mi sono depresso e stavo facendo tardi per la cena dai miei. Cosa più importante avevo da vedere Voyager con mi padre, quindi l'ho pubblicato oggi. </span></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[ssh-Tunnel]]></title>
<link>http://seufz.wordpress.com/?p=297</link>
<pubDate>Thu, 09 Oct 2008 11:43:16 +0000</pubDate>
<dc:creator>noqqe</dc:creator>
<guid>http://seufz.ru.wordpress.com/2008/10/09/ssh-tunnel/</guid>
<description><![CDATA[Bin ja richtig begeistert für was sich das alles verwenden lässt.
Problem war folgendes: Ich möch]]></description>
<content:encoded><![CDATA[<p>Bin ja richtig begeistert für was sich das alles verwenden lässt.</p>
<p>Problem war folgendes: Ich möchte an ein Netzwerkdrucker-WebInterface von einem Kunden in einem internen Netzwerk(Von außen nicht erreichbar)um Einstellungen vorzunehmen. Wenn möglich ohne hinzufahren. Ein Arbeitskollege hat mir dann geraten einen ssh-Tunnel aufzubauen.</p>
<p>ssh -L lokalerport:zielrechner:zielport login@gateway(firewall)</p>
<p>Bedeutet im Klartext:</p>
<p>Ich baue eine Verbindung zum Gateway auf(<code>login@gateway(firewall)</code>in diesem Falle die Firewall des Kunden) und steuere über diese eine beliebige Interne IP(<code>zielrechner)</code> an. Dann kann ich den Port 80 (<code>zielport)(</code>HTTP - eben fürs Webinterface) der Drucker IP auf einen frei wählbaren Port(<code>lokalerport)</code> auf localhost legen und anschließend simpl im Browser unter http://localhost:port abrufen! Und das alles mit diesem einen Befehl :)</p>
<p>Enter gedrückt und schon kann ich den Internen NetzDrucker vom Kunden bequem vom Arbeitsplatz aus konfigurieren.</p>
<p>Geht übrigens mit allem was nen Webinterface hat... Router ...Switches ... Modems... und wenn der Port stimmt sogar noch andere Scherze... also eine riesen Erleichterung.</p>
<p>War ich richtig beeindruckt von :)</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Kubuntu as an Xwindows Server]]></title>
<link>http://primalcortex.wordpress.com/?p=105</link>
<pubDate>Thu, 09 Oct 2008 10:22:17 +0000</pubDate>
<dc:creator>primalcortex</dc:creator>
<guid>http://primalcortex.ru.wordpress.com/2008/10/09/kubuntu-as-an-xwindows-server/</guid>
<description><![CDATA[When on Windows, I normaly use the XLive CD to connect to my Unix machines (they can be Linux and So]]></description>
<content:encoded><![CDATA[<p>When on Windows, I normaly use the XLive CD to connect to my Unix machines (they can be Linux and Solaris) and access remotely the X applications with their output showing on my Windows PC.</p>
<p>Well I've moved my work computer from XP to Kubuntu 8.04, and since then I struggle to do the same as I did with the XLive CD.</p>
<p>Basically with the XLive CD this is how it works:</p>
<p>- On your windows PC after starting the XLive CD, the X server starts and bind to the TCP X port to hear incoming connections. These incoming connections come from the client I try to access.</p>
<p>- On the client side I just do and <strong>export=ip_my_windows_machine:0.0</strong> and start the X application.</p>
<p>- That's it.</p>
<p>On Kubuntu I've tried several configurations to allow the KDE display manager to listen to network connections. I've searched a lot, changed the xorg.conf file, the kdm.rc file, and yes it didn't work....</p>
<p>Well the issue was that I needed a paradigm change in how to connect to my client machines. I took me a while to see that I do not need to fiddle with my KDE configuration...</p>
<p>So how you can you do it?</p>
<p>Simple:</p>
<p>- Connect to your client machine through ssh (You're using ssh, righ? ) and edit the file <strong>sshd.conf</strong> or <strong>ssh_config </strong>(It depends on your version) located in <strong>/etc/</strong> or one of it's subdirectories like <strong>sshd.</strong></p>
<p>- Edit the file and make sure that you have a line <strong>ForwardX11 yes</strong></p>
<p>- Save and restart the ssh deamon.</p>
<p>Now on your workstation instead of connecting with just <strong>ssh user@IP</strong> use <strong>ssh -X user@IP</strong>. With this command all X connections will be forwarded automatically to your Kubuntu desktop, just like you did an export DISPLAY and so on.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Custom Message for SSH logins]]></title>
<link>http://egloo.wordpress.com/?p=138</link>
<pubDate>Wed, 08 Oct 2008 14:46:53 +0000</pubDate>
<dc:creator>pcabrerat</dc:creator>
<guid>http://egloo.ru.wordpress.com/2008/10/08/custom-message-for-ssh-logins/</guid>
<description><![CDATA[If you ever wanted to show a message anytime someone logs to your server through SSH, here you have ]]></description>
<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-139" title="logo" src="http://egloo.wordpress.com/files/2008/10/logo.jpg" alt="" width="134" height="140" />If you ever wanted to show a message anytime someone logs to your server through SSH, here you have the how-to:</p>
<p>You will need root access to the server.</p>
<p>Login as root and use your favorite editor to modify the /etc/motd file. For this example I'm using vi.</p>
<p><code># vi /etc/motd</code></p>
<p>Now type in the message you wish all users to see once they login to your server. Lets try something like this:</p>
<p><em>If you are not an authorized user for this server<br />
or you are a hacker trying to access confidential info, think before you type.<br />
Maybe join the human race and refrain from hacking it?  See<br />
"Schlindler's List" part where the German commandant is shooting<br />
prisoners in the prsion year "because he can".  Schlindler tells him<br />
"true power is in not doing evil even though you can."<br />
You know, no one crushed you under their boot when you were a<br />
baby, although they certainly could have...  With great power comes great responsibility.</em></p>
<p>OK, Now you're done editing the file, type <strong>Esc </strong>to enter command mode and then type <code>:wq </code>to save the changes</p>
<p>Logout from SSH, then log back again and you will see your custom message.</p>
<p>Please note that the message will be displayed <strong>AFTER </strong>people log in. If you want to show a message BEFORE, you might want to edit your sshd_config file.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[SSH (part one)]]></title>
<link>http://lostnbronx.wordpress.com/?p=17</link>
<pubDate>Wed, 08 Oct 2008 01:09:52 +0000</pubDate>
<dc:creator>lostnbronx</dc:creator>
<guid>http://lostnbronx.ru.wordpress.com/2008/10/07/ssh-part-one-2/</guid>
<description><![CDATA[“Failure Is My Business”
So everybody is SSHing into their home boxes, except me, because I just]]></description>
<content:encoded><![CDATA[<p><strong>“Failure Is My Business”</strong></p>
<p><em>So everybody is <a title="Wikipedia ssh page" href="http://en.wikipedia.org/wiki/Secure_Shell">SSHing</a> into their home boxes, except me, because I just don't know how.  I'm running a Kyocera KR1 router with a Verizon Wireless EVDO card, in a rural area of NE Arizona where there are no phone lines or cables to the property.  Throughput speeds are pitiful.  We have four machines using this connection: a desktop system running Ubuntu 8.04 Hardy Heron; an old Dell desktop running Debian Etch, an ancient Packard Bell with Damn Small Linux 4.0 installed; and an eeePC 701 Surf 2GB model, running eeebuntu NBR 1.0.  I know less than nothing about Dynamic DNS, but that's going change by the time I'm done, however long it takes.</em></p>
<p><strong>High Hopes and Low Spirits</strong><br />
I want to learn how to SSH.  My documentation for this first attempt came in the form of a tutorial called, “<a title="ddns mp3" href="http://www.hackerpublicradio.org/eps/hpr0149.mp3">Ep: 0149   klaatu - DynamicDNS &#124; 2008-07-25</a>,” which I found on hackerpublicradio.org.  Recorded by <strong>Klaatu</strong>, who needs no introduction to the FOSS community, (but in case he does to other people, check out the links to just a couple of his hangouts on the Internet, below), I had dreams of simply jumping in and getting things all set up.  I listened along, stopping the recording from time-to-time to type in relevant URLs, and to open terminals, etc.  And it all went swimmingly.</p>
<p>You know, the way it did for that girl at the beginning of <em>Jaws</em>.</p>
<p>This was a long process that ultimately ended in frustration.  I followed Klaatu's instructions to the letter, but at some point we were simply using different alphabets.  If I may mangle the Bard for a moment, the fault lies not in our star (of the tutorial), but in ourselves: my ignorance did me a grave disservice here once again, to say nothing of the confusion caused by the massive variety of firmware running on an equally massive number of different routers out there.  Certainly, the Kyocera KR1 is different from the router used in the tutorial, and things started to go bad from almost the very moment it was time to change the settings on my machine.  Always keep in mind, <em>I don't know what the hell I'm doing</em>, so I can be completely stymied by little things like unfamiliar terminology.</p>
<p style="text-align:center;">[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]</p>
<p><strong>ENTER The Blue-Haired Stranger</strong><br />
We start off on this audio tutorial with some peppy electronic music, reminiscent of the evening news, which quickly segues into an intro and short anecdote about Klaatu's first encounter with SSH, and a very basic explanation of what Dynamic DNS is.  He talks about <a title="no-ip.com" href="http://www.no-ip.com/">No-ip.com</a>, to use as your “bridge”, and, himself, uses it in the tutorial.  I signed up over there, and that went well-enough, though it's not the easiest site to navigate -- I think mostly because they're a commercial venture, and are naturally pushing their profit-making services over their basic one, which I was looking for.  Using their basic service, though, is free (as in beer), so that's why Klaatu feels most people would want to do so.  Being a cheap Yankee, I certainly agree.</p>
<p>I logged in to No-ip.com, and used it to add a host name.  That, too, was confusing, since they have some domain names for free, and some only available to their paying customers; and while they have these listed separately, they do put them together on the same dropdown menu, and you can – as I did, twice -- go through all the steps and submit your information before they tell you that you made a mistake.  I could've avoided this by looking through the entire menu first, thus seeing the delineated sections, but I needed to be frustrated for a few moments, I guess.  Part of this was caused by the fact that Klaatu's example, “geekgalaxy.com” is on the pay-for list, though he emphasizes going the free route.</p>
<p>Finally, I picked one that worked, and put together a name I figured I could remember (very important for the retention-challenged amongst us).  My ultimate goal is SSH only, so No-ip.com basically said that all I needed out of them was a DNS host.  The tutorial also recommends this.  I don't  really understand the available services at this site, but that's what I was after, so that's what I chose.  I gather that the purpose is to create a name you can just type into an application that effectively hides your IP address at home or where ever it is you're trying to SSH into.  This part seemed to go well, and I did, indeed, end up with a host name registered at No-ip.com.</p>
<p>The next step in the tutorial involved configuring the firewall that I have on our main Ubuntu box, here, which is the one I'd most likely want access to when out and about.  (Actually, now that I'm thinking of it, I'd more likely want to get into my DSL box, where I spend a lot of my time. Maybe I will, next time.)</p>
<p><strong>Now Boarding At Port 22</strong><br />
Now, this begins a trickier part of the tutorial, because, naturally, Klaatu couldn't tell me exactly which buttons to press on my firewall application, yet that is the kind of hand-holding a new enthusiast like myself is looking for, and which the first half of his how-to was able to more-or-less provide.  I was looking to enable “SSH”, which is Port 22.  I don't really know what ports are, except for the sea, air, and space kind, but Wikipedia has <a title="port Wikipedia page" href="http://en.wikipedia.org/wiki/Computer_port_(software)">this</a> to say about them, which doesn't help me at all.  Whatever the hell they are, Klaatu warns not to be tempted to mess with any of the other ports at this point, and, specifically, not to enable “HTTP”, as it represents a severe security risk.  When I want to flirt with danger, I'll tear the labels off my soup cans; in the meantime, I'll stick with “SSH”.</p>
<p>Believe or not (because I'm not sure <em>I</em> do, nor do I yet have a success to, in fact, prove that I did), I was able to go into my firewall and open Port 22 of my machine, as well as enable TCP on it, which, in the tutorial, I was told to do.  UDP was an option here, but I don't know the difference, and even Klaatu admits on this recording that he doesn't either.  He provides some (highly confusing) info on adjusting your iptables, in case you either have no firewall, or simply prefer using them instead – though I'd expect that anyone capable of properly working with their iptables has little need for a basic tutorial like this, different in scope though it is.</p>
<p>Supposedly, at this point, if I did this correctly, I'd be all set to go.  That is, unless I had a wireless router on my network, connecting the target computer to the Internet.  Which I did.  So I'm not.</p>
<p><strong>Get Your Kicks On Router 666</strong><br />
As far as I can tell, this where it went sour.  While I easily could have screwed something up earlier, I didn't feel completely lost until I had to make changes in the HTML router interface; and, like the situation with the firewall, there are just too many variables for Klaatu to have guided me by the hand.   Now, I've been inside my router before, poking around trying to figure out a big mystery -- telephone in one hand, with a solicitous but ultimately impotent help desk person on the other end.  I didn't learn much there (didn't even solve the problem), so this new trip into my router's config was somewhat spooky.  Klaatu makes the statement that most of the people listening to his tutorial – because it is hosted on <a title="hpr home" href="http://www.hackerpublicradio.org/">Hacker Public Radio</a>, a rather geeky place – have configured their router before.  Again, I submit that SSH may well be a person's first exposure to the controls of their router, as they mightn't have needed to go in there before for any other reason.</p>
<p>Be that as it may, <em>I</em> certainly don't have useful experience there, so this part of the tutorial was critical; yet Klaatu was using a Netgear router, and the interface for it is different enough from my KR1 that I was effectively on my own.  Specifically, he has a “Port Forwarding/Port Triggering”  control pane in his.  I'm sure I do too, but not by that name.  And since nomenclature is everything sometimes, despite the sweetness of a rose, I was unable to positively identify the correct subcategory in my router's control interface.  Oh, I clicked on <em>lots</em> of things, but none of them allowed my eeePC (from where I was working) to access the target desktop computer.  I mean, is it even <em>possible</em> to SSH in this manner from one machine to another when they're both behind the same router?  Your guess is at least as good as mine, and probably a whole lot better.</p>
<p>In the end, it was no-go for me using only this tutorial.  I am SSH-less yet.</p>
<p style="text-align:center;">[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]</p>
<p><strong>The Good</strong> – Klaatu is an excellent speaker, and I don't know if he does any professional training, but he certainly could.  This tutorial, like others by him I've heard, is both concise and verbose where needed, and he's very open about what he does and doesn't know.  His knowledge of <em>this</em> topic clearly dwarfs my own (though that's not hard, obviously), and, despite my lack of success while following his tutorial, it provided a good introduction to free DDNS services, and I believe that I was able to successfully create a usable host name for future attempts.  I also feel like I have a decent handle on the basic concept and what I should expect to accomplish.  This is considerably more than I had when I started.</p>
<p><strong>The Bad</strong> – I'm still unable to SSH into my target box.  I place the blame squarely on my ignorance (of course), and the myriad router differences that exist in the world.  I think I will need to search for an overview, or even another tutorial, that covers the KR1 in particular regarding DDNS.</p>
<p><strong>The Ugly</strong> – The single most frustrating thing about this isn't <em>this</em> at all, but rather, the continual interruptions I had while trying to <em>do</em> this.  I simply cannot succeed at learning how to do SSH (or probably much else) if I have to continually stop and deal with other things.  I suppose this isn't ugly at all if it inspires me to change how I do things, but it's maddening, regardless.</p>
<p><strong>Links</strong><br />
<a title="dynamic dns mp3" href="http://www.hackerpublicradio.org/eps/hpr0149.mp3"> hpr0149-klaatu-dynamic-dns.mp3</a> (direct download of the show)<br />
<a title="klaatu's ddns screenshots" href="http://straightedgelinux.com/interweb/"> straightedgelinux.com/interweb</a> (an excellent page of text and emendated screenshots, specific to this tutorial, also by Klaatu)<br />
<a title="hpr home" href="http://www.hackerpublicradio.org/"> hackerpublicradio.org</a><br />
<a title="no-ip.com" href="http://no-ip.com/"> No-ip.com</a><br />
<a title="tcp &#38; udp port Wikipedia page" href="http://en.wikipedia.org/wiki/TCP_and_UDP_port"> TCP and UDP port</a> (Wikipedia page)</p>
<p>Thanks to Klaatu for his fine work.  Check him out on the following podcasts (or just Google him – the guy's everywhere):<br />
<a title="bad apples podcast" href="http://thebadapples.info/"> The Bad Apples podcast</a><a title="linux cranks podcast" href="http://linuxcranks.info/"><br />
Linux Cranks podcast</a><br />
<a title="fedora reload podcast" href="http://www.fedorareloaded.com/"> Fedora Reloaded podcast</a><br />
<a title="Klaatu on HPR" href="http://www.hackerpublicradio.org/search.php?searchterm=klaatu"> Hacker Public Radio</a> (quite a few episodes)</p>
<p>Next Up:</p>
<p><strong>SSH (part two)</strong><br />
“Artie Ephem Blows Into Town (or maybe he just blows)”</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Otra lista de comandos para la consola]]></title>
<link>http://conociendolinux.wordpress.com/?p=152</link>
<pubDate>Wed, 08 Oct 2008 00:08:57 +0000</pubDate>
<dc:creator>Garbu</dc:creator>
<guid>http://conociendolinux.ru.wordpress.com/2008/10/08/otra-lista-de-comandos-para-la-consola/</guid>
<description><![CDATA[Pues de rebote me he encontrado con ésta entrada y no he podido evitar registrarla en el blog, no m]]></description>
<content:encoded><![CDATA[<p>Pues de rebote me he encontrado con <a href="http://www.maty1206linuxeando.com/archives/1933">ésta entrada</a> y no he podido evitar registrarla en el blog, no me digas que no es interesante, muchos de esos comandos tan útiles desde la consola:</p>
<blockquote>
<h3>¿Qué versión del kernel tengo?</h3>
<p>$ uname -r<br />
2.6.17.13-smp</p>
<h3>¿Qué versión de X tengo instalada?</h3>
<p>$ X -version 2&#62;&#38;1 &#124; sed ‘/^$/d’ &#124; head -n1<br />
X Window System Version 6.9.0</p>
<h3>¿Tengo aceleración por hardware en mi placa de video?</h3>
<p>$ glxinfo &#124; grep “direct rendering”<br />
direct rendering: Yes</p>
<h3>¿Qué procesador(es) tiene mi compu?</h3>
<p>$cat /proc/cpuinfo &#124; grep “model name”<br />
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz<br />
model name      : Intel(R) Pentium(R) 4 CPU 3.00GHz</p>
<h3>¿Cuál es la frecuencia del(los) procesador(es)?</h3>
<p>$ cat /proc/cpuinfo &#124; grep “cpu MHz”<br />
cpu MHz         : 3000.586<br />
cpu MHz         : 3000.586</p>
<h3>¿Que porcentaje del disco(s) esta usado/libre?</h3>
<p>$ df -h<br />
Filesystem            Size  Used Avail Use% Mounted on<br />
/dev/sda1              10G  6.5G  3.5G  65% /<br />
/dev/sda2              10G  4.9G  5.2G  49% /home</p>
<h3>¿Cual es la temperatura del CPU?</h3>
<p>$ cat /proc/acpi/thermal_zone/THRM/temperature<br />
temperature:             43 C</p>
<h3>¿Cual es el nombre de la maquina?</h3>
<p>$ hostname<br />
amd64</p>
<h3>¿Cual es la MAC de la placa de red?</h3>
<p>$ /sbin/ifconfig &#124; awk ‘/HWaddr/ {print $5}’<br />
00:XX:XX:XX:XX:XX</p>
<h3>¿Cuanta memoria tiene disponible la compu?</h3>
<p>$ free -m &#124; sed -n ‘2,2p’  &#124; awk ‘{print $2 ” MB”}’<br />
494 MB</p>
<h3>¿Cuánta memoria está usando la compu?</h3>
<p>$ free -m &#124; sed -n ‘3,3p’  &#124; awk ‘{print $3 ” MB”}’<br />
297 MB</p>
<h3>¿Cuanta memoria está libre?</h3>
<p>$ free -m &#124; sed -n ‘3,3p’  &#124; awk ‘{print $4 ” MB”}’<br />
195 MB</p>
<h3>¿Hace cuanto que está encendida la compu?</h3>
<p>$ uptime &#124; cut -d, -f1 &#124; cut -d” ” -f3-</p>
<h3>¿Qué proceso está consumiendo más CPU?</h3>
<p>$ ps -eo pcpu,pid,user,args &#124; sort -k1 -r -n &#124; head -2<br />
%CPU   PID USER      COMMAND<br />
2.1 10346 zarpele /usr/lib/opera/9.27-20080331.6/opera -style Plastik</p>
<h3>¿Qué dispositivos tengo en los bus PCI?</h3>
<p>$ /sbin/lspci<br />
00:00.0 Host bridge: Intel Corporation 915G/P/GV/GL/PL/910GL Express Memory Controller Hub (rev 04)<br />
00:01.0 PCI bridge: Intel Corporation 915G/P/GV/GL/PL/910GL Express PCI Express Root Port (rev 04)<br />
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Express Chipset Family Graphics Controller (rev 04)<br />
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)<br />
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)<br />
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)<br />
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)<br />
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)<br />
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)<br />
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)<br />
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)<br />
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)<br />
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)</p>
<h3>¿Qué dispositivos tengo en los bus USB?</h3>
<p>$ /sbin/lsusb<br />
Bus 5 Device 1: ID 0000:0000<br />
Bus 3 Device 1: ID 0000:0000<br />
Bus 2 Device 1: ID 0000:0000<br />
Bus 1 Device 1: ID 0000:0000<br />
Bus 4 Device 2: ID 03f0:1d17 Hewlett-Packard<br />
Bus 4 Device 1: ID 0000:0000</p>
<h3>¿Cuál es el nombre de usuario que tengo?</h3>
<p>$ whoami<br />
zarpele</p>
<h3>¿A que grupos del sistema pertenezco?</h3>
<p>$ groups<br />
users floppy audio video cdrom</p>
<h3>¿Cuánto espacio de disco usa mi cuenta?</h3>
<p>du -sh $HOME<br />
3.6G    /home/eternauta</p>
<h3>¿Que versión del compilador de C tengo instalado?</h3>
<p>$ gcc –version &#124; head -n1<br />
gcc (GCC) 3.4.6</p>
<h3>¿Qué librerías utiliza el programa xxx (por ejemplo mplayer)?</h3>
<p>$ ldd /usr/bin/mplayer<br />
linux-gate.so.1 =&#62; (0xffffe000)<br />
libdvdnav.so.4 =&#62; /usr/lib/libdvdnav.so.4 (0xb7ecc000)<br />
libpthread.so.0 =&#62; /lib/tls/libpthread.so.0 (0xb7e9c000)<br />
libmad.so.0 =&#62; /usr/lib/libmad.so.0 (0xb7e87000)<br />
libdv.so.4 =&#62; /usr/lib/libdv.so.4 (0xb7e5f000)<br />
libtheora.so.0 =&#62; /usr/lib/libtheora.so.0 (0xb7e31000)<br />
libogg.so.0 =&#62; /usr/lib/libogg.so.0 (0xb7e2c000)<br />
libpng.so.3 =&#62; /usr/lib/libpng.so.3 (0xb7df1000)<br />
libz.so.1 =&#62; /usr/lib/libz.so.1 (0xb7ddf000)<br />
libjpeg.so.62 =&#62; /usr/lib/libjpeg.so.62 (0xb7dc2000)<br />
libasound.so.2 =&#62; /usr/lib/libasound.so.2 (0xb7d02000)<br />
libdl.so.2 =&#62; /lib/tls/libdl.so.2 (0xb7cfe000)<br />
libxmms.so.1 =&#62; /usr/lib/libxmms.so.1 (0xb7cf1000)<br />
libmpcdec.so.5 =&#62; /usr/lib/libmpcdec.so.5 (0xb7ce3000)</p>
<h3>¿Qué hora y día es hoy?</h3>
<p>$ date<br />
Fri Oct  3 12:56:14 ART 2008</p>
<h3>¿Tienés un calendario de este mes?</h3>
<p>$ cal<br />
October 2008<br />
Su Mo Tu We Th Fr Sa<br />
1  2  3  4<br />
5  6  7  8  9 10 11<br />
12 13 14 15 16 17 18<br />
19 20 21 22 23 24 25<br />
26 27 28 29 30 31</p></blockquote>
<p>Fuente: <a href="http://www.taringa.net/posts/linux/1608220/Respuestas-rapidas-sobre-la-compu-desde-la-consola.html">Taringa</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Truco para navegar por los directorios mediante la linea de comandos]]></title>
<link>http://conociendolinux.wordpress.com/?p=147</link>
<pubDate>Tue, 07 Oct 2008 23:22:04 +0000</pubDate>
<dc:creator>Garbu</dc:creator>
<guid>http://conociendolinux.ru.wordpress.com/2008/10/08/truco-para-navegar-por-los-directorios-mediante-la-linea-de-comandos/</guid>
<description><![CDATA[Algunas de las veces que estamos en linea de comandos no hacemos mas que cambiar y cambiar de carpet]]></description>
<content:encoded><![CDATA[<p>Algunas de las veces que estamos en linea de comandos no hacemos mas que cambiar y cambiar de carpeta, y muchas veces tenemos que volver a la carpeta anterior, para lo cual no nos queda otra que volver a introducir la ruta exacta.</p>
<p>Pues resulta que si que tenemos otra opción y mucho mas facil, introduciendo el siguiente comando:</p>
<blockquote>
<h3><strong><em>cd -</em></strong></h3>
</blockquote>
<p>Nos volvemos a situar en la carpeta anterior a la que estamos actualmente. Pongamos un ejemplo para que se entienda mejor:</p>
<blockquote>
<h3><strong><em><span style="color:#339966;">user@ubuntu-server:~$</span> pwd</em></strong></h3>
<h3><strong><em> <span style="color:#0000ff;">/home/user</span></em></strong></h3>
<h3><strong><em> <span style="color:#339966;">user@ubuntu-server:~$</span> cd /etc/apache2/</em></strong></h3>
<h3><strong><em> <span style="color:#339966;">user@ubuntu-server:/etc/apache2$</span> ls</em></strong></h3>
<h3><strong><em> <span style="color:#0000ff;">apache2.conf  envvars     mods-available  ports.conf       sites-enabled</span></em></strong></h3>
<h3><strong><em><span style="color:#0000ff;"> conf.d        httpd.conf  mods-enabled    sites-available</span></em></strong></h3>
<h3><strong><em> <span style="color:#339966;">user@ubuntu-server:/etc/apache2$</span> cd -</em></strong></h3>
<h3><strong><em> <span style="color:#0000ff;">/home/user</span></em></strong></h3>
<h3><strong><em> <span style="color:#339966;">user@ubuntu-server:~$</span></em></strong></h3>
<p><strong><em> </em></strong></p></blockquote>
<p>Está claro que este tip es bastante util, pero hay que acostumbrarse a usarlo !!</p>
<p>Fuente: <a href="http://spsneo.com/blog/2008/07/21/colourful-man-pages-in-ubuntu/">spsneo.com/blog/</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Pure-ftp on CentOS 5 Pt 2]]></title>
<link>http://geekstar.wordpress.com/?p=57</link>
<pubDate>Tue, 07 Oct 2008 23:15:08 +0000</pubDate>
<dc:creator>geekstar</dc:creator>
<guid>http://geekstar.ru.wordpress.com/2008/10/07/pure-ftp-on-centos-5-pt-2/</guid>
<description><![CDATA[Well now that you have installed a basic server install of CentOS we are going to setup the environm]]></description>
<content:encoded><![CDATA[<p>Well now that you have installed a basic server install of CentOS we are going to setup the environment we need in order to use our server. What you haven't installed CentOS 5 yet?  <a title="CentOS 5 install" href="http://geekstar.wordpress.com/2008/10/03/pure-ftp-on-centos-5/">You might want to check out part one of this then</a>.  For those of you who have already installed it lets move on.</p>
<p>This section covers the configuration of the firewall, ssh, and creating user accounts.  The final part will cover the install of MySQL, PHP, and Pure-ftp.<br />
<!--more--></p>
<p>Now this part is all command line baby!!!  So I'm not going to provide any screen shots since you shouldn't need them.  If you think you need screen shots for this section just stop reading now.  Seriously leave!  Okay so first I'm going to setup ssh.  It should already be installed so all we need to do is configure it.</p>
<p>I'm kind of a security freak so I'm going to walk you through how to do public-key authentication, and how to change the port of the ssh server so you aren't logging in on the standard port 22.  But before we do that I'm going to show you how to setup the firewall.  This is a basic setup but should be pretty secure.  If you want to know more about configuring the firewall <a href="http://wiki.centos.org/HowTos/Network/IPTables">check out this tutorial</a>.</p>
<p><code>cd ~<br />
mkdir scripts<br />
vim ./myfirewall<br />
</code></p>
<p>Just paste in this script (make modifications where you see fit):<br />
<code>#!/bin/bash<br />
#<br />
# iptables firewall configuration script</code></p>
<p><code># flush all current rules from iptables<br />
iptables -F</code></p>
<p><code># allow ssh connections on tcp port 8768 &#60;-- this is just random pick anything over 6000<br />
iptables -A INPUT -p tcp --dport 8768 -j ACCEPT<br />
# allow ftp connections on tcp port 21 &#60;-- for more security you can change this<br />
iptables -A INPUT -p tcp --dport 21 -j ACCEPT</code></p>
<p><code># set default policies for INPUT, FORWARD and OUTPUT chains<br />
iptables -P INPUT DROP<br />
iptables -P FORWARD DROP<br />
iptables -P OUTPUT ACCEPT</code></p>
<p><code># set access for localhost<br />
iptables -A INPUT -i lo -j ACCEPT</code></p>
<p><code># accept packets belonging to esablished and related connections<br />
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</code></p>
<p><code># save settings<br />
/sbin/service iptables save</code></p>
<p><code># list the rules<br />
iptables -L -v</code></p>
<p>Finally make this file executable and you have a script:<br />
<code>chmod +x myfirewall</code></p>
<p>To run it you just type (you must be logged in as root):<br />
<code>~/scripts/myfirewall</code></p>
<p>This will make it easier when you want to add rules. It flushes all the rules, rebuilds the rules, saves them, and lists all the rules at the end.  Once this is done we should reboot to let the firewall settings take effect.<br />
<code>shutdown -r now</code></p>
<p>Another thing we want to do before we configure ssh is to create a user.  We aren't going to allow root access to ssh so we need someone to login as.  Once it's restarted we are going to login as root and create a user.  (just replace <em>username</em> and <em>password</em> with your desired username and password)<br />
<code>useradd <em>username</em><br />
passwd <em>username password</em></code></p>
<p>Now when you login to that username you can always switch to the root user by typing:<br />
<code>su -</code><br />
Then it will prompt you for the root password.  To switch back:<br />
<code>logout</code></p>
<p>Rule of thumb is to never login to root unless you absolutely have to in order to change something.  It can be really dangerous to login as root all the time because if you make a mistake there is most likely no way of going back.  Now that I gave you that warning we are going to login as root because we need to setup the ssh server.</p>
<p>First let's create a backup of the sshd_config file so we can go back if we make a mistake.<br />
<code>mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak</code></p>
<p>Now let's edit the original file.<br />
<code>vim /etc/ssh/sshd_config</code></p>
<p><a title="sshd_config file" href="http://geekstar.wordpress.com/2008/10/07/sshd_config-file/" target="_blank">And just copy this configuration and paste it into the window.</a> Or you can type it in manually, just make sure to double check everything at the end.</p>
<p>After you have done that all you need to do is to create the .ssh folder with the authorized keys file.  Make sure you are logged in as a user other than root and do this.</p>
<p><code>mkdir ~/.ssh<br />
chmod 700 ~/.ssh</code></p>
<p>Now all you have to do is to upload your public key to the server.  <a href="http://geekstar.wordpress.com/2008/10/07/setting-up-ssh-client-for-public-key-authentication/">If you do not have one it's pretty easy to make</a>.</p>
<p>Okay so I didn't plan on having a part 3 to this tutorial, but there is a lot more than I thought there would be.  So now that we have ssh setup properly and have the firewall configured then we are good to move on to the next part.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Setting Up SSH Client for Public key Authentication]]></title>
<link>http://geekstar.wordpress.com/?p=78</link>
<pubDate>Tue, 07 Oct 2008 23:08:02 +0000</pubDate>
<dc:creator>geekstar</dc:creator>
<guid>http://geekstar.ru.wordpress.com/2008/10/07/setting-up-ssh-client-for-public-key-authentication/</guid>
<description><![CDATA[Setting up the ssh client for using public key authentication is pretty easy.  But I remember before]]></description>
<content:encoded><![CDATA[<p>Setting up the ssh client for using public key authentication is pretty easy.  But I remember before I knew how to do it I had to look it up all the time whenever I wanted to setup a machine.  Now it's become second nature so I am going to show you how it's done.<br />
<!--more--><br />
For Linux/Unix/Mac Os X users:<br />
Open up a terminal window and type the following.<br />
<code>cd ~/.ssh<br />
ssh-keygen -t rsa</code></p>
<p>It will then prompt you with something like this:</p>
<p><code>Generating public/private rsa key pair.<br />
Enter file in which to save the key (/home/user/.ssh/id_rsa):</code> &#60;-- I just press enter here<br />
<code>Enter passphrase (empty for no passphrase):</code> &#60;-- I usually put in a password<br />
<code>Enter same passphrase again:<br />
Your identification has been saved in /home/user/.ssh/id_rsa.<br />
Your public key has been saved in /home/user/.ssh/id_rsa.pub.<br />
The key finger print is:<br />
9d:27:2f:d5:6f:31:a3:fc:8f:f2:10:76:6e:bc:aa:88 user@localhost.localdomain</code></p>
<p>Now that you have a public and private key pair you need to upload your public key to the server you want to connect to.</p>
<p><code>scp ~/.ssh/id_rsa.pub user@host:.</code></p>
<p>Once you do that you need to login to the remote machine and copy the contents of your public key to the users authorized_keys file.</p>
<p><code>cat ~/id_rsa.pub &#62;&#62; .ssh/authorized_keys</code></p>
<p>if there is no .ssh directory:</p>
<p><code>mkdir .ssh<br />
chmod 700 .ssh</code></p>
<p>if there wasn't an authorized_keys file before, make sure to modify the permissions (this only needs to be done if you are using strict permissions in the /etc/ssh/sshd_config):<br />
<code>chmod 600 .ssh/authorized_keys</code></p>
<p>That is all you have to do from the client side on a Linux/Unix/Mac Os X machine.  Now lets look at the Windows way of doing things.  I have done this with both XP and Vista before so it should work the same way, that is as well as I can remember it works the same.</p>
<hr />For Windows XP/Vista Users:</p>
<p>Windows doesn't come with an ssh client, unlike the other operating systems, so you must download a client in order to use ssh.  Luckily there is <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY!</a> If you click on the very top download it should only take a minute since it is a very lightweight application.  While you are there you are going to need PuTTYgen as well.</p>
<p>Now for the part that sucks for me... having to take screen shots, optimize the images, upload them and paste them.  All the while supplying you with step by step instructions.  Seriously I give props to the people that do this more than I do, this takes a long time to make a tutorial.</p>
<p>So lets open up PuTTYgen and see what it looks like.</p>
<p><a href="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-1-1.jpg"><img class="size-full wp-image-86" title="putty_key_gen-1-1" src="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-1-1.jpg" alt="" width="400" height="391" /></a></p>
<p>Just click on the "Generate" button.  And you will get this screen.</p>
<p><a href="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-2-1.jpg"><img class="size-full wp-image-87" title="putty_key_gen-2-1" src="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-2-1.jpg" alt="" width="400" height="391" /></a></p>
<p>This part is kind of fun because you get to move your mouse around in that area to generate the key.  The only time it sucks is when you set the number of bits to higher than 1024, I would normally go with 2048 but you always have the choice of 4084 as well.  If you choose the last one I hope you have some stamina because it takes a while.</p>
<p><a href="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-3-1.jpg"><img class="alignnone size-full wp-image-88" title="putty_key_gen-3-1" src="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-3-1.jpg" alt="" width="400" height="391" /></a></p>
<p>Now you just need to type in the information you want.  If you don't want to put a password for the private key that is your choice.  If you want to make a password you can always use <a title="Pageant Download" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">pageant</a> to make it so you don't have to type a password everytime.  MAKE SURE YOU SAVE BOTH THE PRIVATE AND PUBLIC KEYS!  And put them in a location you can find.</p>
<p>Now we insert that private key into PuTTY.  So lets configure our PuTTY session.</p>
<p><a href="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-4-1.jpg"><img class="alignnone size-full wp-image-89" title="putty_key_gen-4-1" src="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-4-1.jpg" alt="" width="457" height="440" /></a></p>
<p>First we are going to open up PuTTY and go to the Auth section under SSH.  Leave the defaults and browse for where you saved your private key.  Now go back up to Sessions.</p>
<p><a href="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-5-1.jpg"><img class="alignnone size-full wp-image-90" title="putty_key_gen-5-1" src="http://geekstar.wordpress.com/files/2008/10/putty_key_gen-5-1.jpg" alt="" width="400" height="385" /></a></p>
<p>Fill out the connection information, create a session name and save the configuration.  Now we have to upload the public key to the server.</p>
<p>Hopefully the ssh server is using password authentication right now, or you have some means to ssh into the server.  Because this is now command line via ssh.  Let's upload the public key to the server.</p>
<p><code>scp /path/to/file/publickey.pub user@host:.</code></p>
<p>Now connect via ssh to the server, we are going to add the public key to the authorized_keys file.  Since we used PuTTYgen to create the public key we need to convert it to the openssh format. And in that same command we append it to the end of the authorized_keys file.</p>
<p><code>ssh-keygen -if publickey.pub &#62;&#62; .ssh/authorized_keys</code></p>
<p>and that's all folks!  Now you should be able to connect to your server using public key authentication.  Hope you made it through this okay.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[sshd_config file]]></title>
<link>http://geekstar.wordpress.com/?p=65</link>
<pubDate>Tue, 07 Oct 2008 20:57:12 +0000</pubDate>
<dc:creator>geekstar</dc:creator>
<guid>http://geekstar.ru.wordpress.com/2008/10/07/sshd_config-file/</guid>
<description><![CDATA[Here is my configuration file for OpenSSH server.  I have configured it to use public key authentica]]></description>
<content:encoded><![CDATA[<p>Here is my configuration file for OpenSSH server.  I have configured it to use public key authentication, and have only left the password authentication on so that people can test it before they turn it off.<br />
<!--more--></p>
<p><code># Package generated configuration file<br />
# See the sshd(8) manpage for details</code></p>
<p><code># What ports, IPs and protocols we listen for<br />
Port 8768<br />
# Use these options to restrict which interfaces/protocols sshd will bind to<br />
#ListenAddress ::<br />
#ListenAddress 0.0.0.0<br />
Protocol 2<br />
# HostKeys for protocol version 2<br />
HostKey /etc/ssh/ssh_host_rsa_key<br />
HostKey /etc/ssh/ssh_host_dsa_key<br />
#Privilege Separation is turned on for security<br />
UsePrivilegeSeparation yes</code></p>
<p><code># Lifetime and size of ephemeral version 1 server key<br />
KeyRegenerationInterval 3600<br />
ServerKeyBits 768</code></p>
<p><code># Logging<br />
SyslogFacility AUTH<br />
LogLevel DEBUG</code></p>
<p><code># Authentication:<br />
LoginGraceTime 120<br />
PermitRootLogin no<br />
StrictModes yes</code></p>
<p><code>RSAAuthentication yes<br />
PubkeyAuthentication yes<br />
#AuthorizedKeysFile	%h/.ssh/authorized_keys</code></p>
<p><code># Don't read the user's ~/.rhosts and ~/.shosts files<br />
IgnoreRhosts yes<br />
# For this to work you will also need host keys in /etc/ssh_known_hosts<br />
RhostsRSAAuthentication no<br />
# similar for protocol version 2<br />
HostbasedAuthentication no<br />
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication<br />
#IgnoreUserKnownHosts yes</code></p>
<p><code># To enable empty passwords, change to yes (NOT RECOMMENDED)<br />
PermitEmptyPasswords no</code></p>
<p><code># Change to yes to enable challenge-response passwords (beware issues with<br />
# some PAM modules and threads)<br />
ChallengeResponseAuthentication no</code></p>
<p><code># Change to no to disable tunnelled clear text passwords<br />
PasswordAuthentication yes</code></p>
<p><code># Kerberos options<br />
#KerberosAuthentication no<br />
#KerberosGetAFSToken no<br />
#KerberosOrLocalPasswd yes<br />
#KerberosTicketCleanup yes</code></p>
<p><code># GSSAPI options<br />
#GSSAPIAuthentication no<br />
#GSSAPICleanupCredentials yes</code></p>
<p><code>X11Forwarding no<br />
#X11DisplayOffset 10<br />
PrintMotd no<br />
PrintLastLog yes<br />
TCPKeepAlive yes<br />
#UseLogin no</code></p>
<p><code>#MaxStartups 10:30:60<br />
#Banner /etc/issue.net</code></p>
<p><code># Allow client to pass locale environment variables<br />
AcceptEnv LANG LC_*</code></p>
<p><code>Subsystem sftp /usr/lib/openssh/sftp-server</code></p>
<p><code>UsePAM yes</code></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[PuTTy SSH]]></title>
<link>http://kylistah.wordpress.com/?p=254</link>
<pubDate>Mon, 06 Oct 2008 02:07:04 +0000</pubDate>
<dc:creator>kylistah</dc:creator>
<guid>http://kylistah.net/2008/10/05/putty-ssh/</guid>
<description><![CDATA[I find myself surprised from time to time when people ask me how to transfer files via SSH. I always]]></description>
<content:encoded><![CDATA[<p>I find myself surprised from time to time when people ask me how to transfer files via SSH. I always suggest <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTy</a>.I prefer <a href="http://en.wikipedia.org/wiki/Secure_copy">scp</a> myself. <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a> is a free implementation of Telnet and SSH for Win32 and Unix platforms, along with an <code>XTerm</code> terminal emulator. It is written and maintained primarily by <a href="http://www.pobox.com/%7Eanakin/">Simon Tatham</a>.</p>
<p>One you have it installed:</p>
<p><strong>1.</strong> Open <span class="highlight">PuTTY</span>.</p>
<p><strong>2.</strong> Connect to your server:</p>
<p><strong># ssh username@IPAddressHere</strong></p>
<p>Log in as your Primary User, enter your password when prompted for a password.</p>
<p><strong>3.</strong> Once you are logged in, you should see this:</p>
<p><strong>[username@hostname username] $</strong></p>
<p><strong>4.</strong> Su to root:</p>
<p><strong># su -</strong></p>
<p>Type in the root password when prompted for a password.</p>
<p><strong>5.</strong> If you su'ed successfully, your prompt should look like this now:</p>
<p><strong>[root@hostname root] #</strong></p>
<p>If you have any questions related to PuTTy, head on over to the <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html">PuTTy FAQ</a>.</p>
<p>Interested in a GUI for managing and running ssh and related utilities? Check out <a href="http://www.freshports.org/security/secpanel/">SecPanel</a>.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[[ubuntu]ssh簡介及安裝]]></title>
<link>http://whubuntuexperience.wordpress.com/?p=25</link>
<pubDate>Sun, 05 Oct 2008 08:49:10 +0000</pubDate>
<dc:creator>whubuntuexperience</dc:creator>
<guid>http://whubuntuexperience.ru.wordpress.com/2008/10/05/ubuntussh%e7%b0%a1%e4%bb%8b%e5%8f%8a%e5%ae%89%e8%a3%9d/</guid>
<description><![CDATA[下遠端登入Microsoft Windows系統，坊間雖然有VNC之類的知名程式，但大部分的]]></description>
<content:encoded><![CDATA[<p>下遠端登入Microsoft Windows系統，坊間雖然有VNC之類的知名程式，但大部分的皆使用內建的"遠端桌面連線"，</p>
<p>功能上大同小異，皆使用視窗的方法。</p>
<p>而在Ubuntu裡，除了VNC及內建的"遠端桌面"，還可以使用telnet &#38; ssh指令來遠端登入，ssh是種簡單方便又高安全性的連線方式，Linux or 其他Unix-like OS底下為標準配備。</p>
<p><span style="color:#ff0000;">*<strong><a href="http://zh.wikipedia.org/w/index.php?title=SSH&#38;variant=zh-tw" target="_self">什麼是ssh</a></strong>(截取wiki)</span></p>
<p>1.開啟終端機鍵入以下指令</p>
<h3><span style="color:#339966;"><strong>sudo apt-get install ssh</strong></span></h3>
<p>2.威利以pietty在MS作業系統上做遠端登入示範圖例及說明</p>
[caption id="attachment_28" align="aligncenter" width="421" caption="ssh登入圖示1"]<a href="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation1.png"><img class="size-full wp-image-28" title="sshinfomation1" src="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation1.png" alt="ssh登入圖示1" width="421" height="305" /></a>[/caption]
[caption id="attachment_29" align="aligncenter" width="499" caption="ssh登入圖示2"]<a href="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation2.png"><img class="size-full wp-image-29" title="sshinfomation2" src="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation2.png" alt="ssh登入圖示1" width="499" height="329" /></a>[/caption]
[caption id="attachment_30" align="aligncenter" width="499" caption="ssh登入圖示3"]<a href="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation3.png"><img class="size-full wp-image-30" title="sshinfomation3" src="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation3.png" alt="ssh登入圖示1" width="499" height="329" /></a>[/caption]
[caption id="attachment_31" align="aligncenter" width="499" caption="ssh登入圖示4"]<a href="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation4.png"><img class="size-full wp-image-31" title="sshinfomation4" src="http://whubuntuexperience.wordpress.com/files/2008/10/sshinfomation4.png" alt="ssh登入圖示4" width="499" height="329" /></a>[/caption]
]]></content:encoded>
</item>
<item>
<title><![CDATA[Papelera de reciclaje en la linea de comandos: Alias]]></title>
<link>http://conociendolinux.wordpress.com/?p=131</link>
<pubDate>Sat, 04 Oct 2008 18:43:21 +0000</pubDate>
<dc:creator>Garbu</dc:creator>
<guid>http://conociendolinux.ru.wordpress.com/2008/10/04/papelera-de-reciclaje-en-la-linea-de-comandos-alias/</guid>
<description><![CDATA[Por accidente o por desgracia, alguno ya se habrá dado cuenta que si usamos el comando rm para borr]]></description>
<content:encoded><![CDATA[<p>Por accidente o por desgracia, alguno ya se habrá dado cuenta que si usamos el comando <strong>rm</strong> para borrar un archivo, éste desaparece para siempre, por mucho que lo busques en la papelera de reciclaje.</p>
<p>Si no eres amigo de que ésto pase, puedes crearte tu propio comando que elimine un archivo mandandolo a la papelera de reciclaje, usando la util instruccion <strong>alias</strong></p>
<p>Por ejemplo, vamos a crear el comando <em>borrar</em>, lo definiriamos desde el terminal de la siguiente manera:</p>
<blockquote><p><em>alias borrar="mv -t ~/.local/share/Trash/files --backup=t"</em></p></blockquote>
<p>Ahora ya podemos usar este comando para borrar archivos sin miedo a perderlos para siempre, o por lo menos con el margen de duda de habernos equivocado:</p>
<blockquote><p><em>borrar archivo</em></p></blockquote>
<p>Para que podamos usar este atajo siempre que iniciemos nuestra máquina, tenemos que agregar la declaración de alias en una línea en el fichero oculto <em>/home/nuestro_usuario/.bashrc</em></p>
<p>Fuente: <a href="http://www.ubuntukungfu.org/blog/2008/07/10-things-you-didnt-know-you-could-do-in-ubuntu/">Ubuntu Kung Fu</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Buscar en el historial de comandos]]></title>
<link>http://conociendolinux.wordpress.com/?p=126</link>
<pubDate>Sat, 04 Oct 2008 13:05:52 +0000</pubDate>
<dc:creator>Garbu</dc:creator>
<guid>http://conociendolinux.ru.wordpress.com/2008/10/04/buscar-en-el-historial-de-comandos/</guid>
<description><![CDATA[Este es un tip rápido para aquellos que olvidais comandos que habeis usado anteriormente.
Como bien]]></description>
<content:encoded><![CDATA[<p>Este es un tip rápido para aquellos que olvidais comandos que habeis usado anteriormente.</p>
<p>Como bien sabeis, ejecutando el comando history podemos ver los comandos que hemos ejecutado anteriormente, ya sea en la misma sesión o en dias anteriores.</p>
<p>Cuantas veces habremos desgastado la tecla <strong>cursor arriba</strong> en busca de ese comando que pusimos y que ahora no recordamos.</p>
<p>Pues bien, si conocemos alguna parte de ese comando podemos hacer una búsqueda del mismo, y con un poco de suerte encontraremos el comando original.</p>
<p>Para acceder a la denominada búsqueda inversa, pulsamos simplemente <strong>Control R </strong>y escribiremos el texto que pueda relacionar con nuestro comando, y con algo de suerte éste aparecerá, será cuando pulsemos <strong>Enter</strong> para ejecutarlo directamente o bien <strong>cursor derecha</strong> o <strong>cursor izquierda</strong> si lo que queremos es editarlo antes de lanzarlo.</p>
<p>Siempre es mejor ésto que buscar en todo el historial secuencialmente, ¿ no ?</p>
<p>Por cierto, si acabamos hartos de nuestro historial, siempre podremos borrarlo con:</p>
<blockquote><p><em>history -c</em></p></blockquote>
<p>O bien que nunca vuelva a registrarse el historial</p>
<blockquote><p><em>export HISTSIZE=0</em></p></blockquote>
<p>Fuente y algún ejemplo en inglés en : <a href="http://www.thegeekstuff.com/2008/08/15-examples-to-master-linux-command-line-history/">The Geek Stuff</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Música remotamente: VLC en modo comandos]]></title>
<link>http://conociendolinux.wordpress.com/?p=114</link>
<pubDate>Sat, 04 Oct 2008 11:03:00 +0000</pubDate>
<dc:creator>Garbu</dc:creator>
<guid>http://conociendolinux.ru.wordpress.com/2008/10/04/musica-remotamente-vlc-en-modo-comandos/</guid>
<description><![CDATA[Las últimas versiones de VLC nos traen una curiosa y puede que interesante curiosidad para mas de u]]></description>
<content:encoded><![CDATA[<p>Las últimas versiones de VLC nos traen una curiosa y puede que interesante curiosidad para mas de uno. Se trata de que podemos lanzar la aplicación desde la linea de comandos, pudiendo abrir cualquier archivo multimedia soportado por la aplicación. Está claro que los videos se visualizarán en un entorno gráfico, pero la música no hara falta que tengamos las X lanzadas.</p>
<p>Suponiendo que ya tenemos <a href="http://conociendolinux.wordpress.com/2008/09/17/actualizarinstalar-vlc-092-en-ubuntu-software-de-terceros/">VLC instalado</a>, abrimos una consola y escribimos lo siguiente:</p>
<blockquote><p><em>vlc -I ncurses</em></p>
<p><span style="color:#ff9900;"># Nos abrirá el reproductor VLC en modo terminal.</span></p>
<p><span style="color:#ff9900;"># Presionando <strong>h </strong>podemos ver una lista de todos los posibles comandos, los mas interesantes son:</span></p>
<p><em><strong>B </strong>-&#62; Explorador de archivos</em></p>
<p><em><strong>a </strong>-&#62; Subir Volumen</em></p>
<p><em><strong>z </strong>-&#62; Bajar Volumen</em></p>
<p><em><strong>Barra Espaciadora </strong>-&#62; Pausar/Reproducir</em></p>
<p><span style="color:#ff9900;"># Uno de los comandos mas útiles, es lanzar todos los mp3's contenidos en una carpeta "Musica" como si fuera una lista de reproducción</span></p>
<p><em>vlc -I ncurses ~/Musica/*.mp3</em></p></blockquote>
<p>Como veis, nada nuevo bajo el sol, aunque como bien digo, puede que tenga mas utilidad de la que pensamos, espero que a alguno le pueda venir bien el tip.</p>
<p><a href="http://spsneo.com/images/vlc.jpg"><img class="aligncenter" src="http://spsneo.com/images/vlc.jpg" alt="" width="665" height="449" /></a></p>
<p>Fuente e Imagen: <a href="http://spsneo.com/blog/2008/08/05/vlc-command-line-interface/">spsneo</a></p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Putty Keys mit open-ssh nutzen]]></title>
<link>http://quarkmitsauce.wordpress.com/?p=555</link>
<pubDate>Sat, 04 Oct 2008 03:22:35 +0000</pubDate>
<dc:creator>quark</dc:creator>
<guid>http://quarkmitsauce.ru.wordpress.com/2008/10/04/putty-keys-mit-open-ssh-nutzen/</guid>
<description><![CDATA[Mittlerweile steht zwar Putty auch für Linux zur Verfügung, aber häufig möchte man ja trotzdem s]]></description>
<content:encoded><![CDATA[<p>Mittlerweile steht zwar Putty auch für Linux zur Verfügung, aber häufig möchte man ja trotzdem seine gewohnte SSH-Umgebung weiternutzen. Um jetzt nicht neue Schlüssel verteilen zu müssen, kann man es sich einfach machen und den Private-Key den man mit Putty nutzt auch mit (open)-ssh nutzen.</p>
<p>Dazu muss man diesen einfach nur konvertieren.</p>
<p>Zuerst müssen die Putty-tools installiert werden. (Unter Ubuntu/Debian)</p>
<p><span style="color:#3366ff;">sudo aptitude install putty-tools </span></p>
<p>Nun konvertiert man den Schlüssel mittels puttygen</p>
<p><span style="color:#3366ff;">puttygen ssh-key.ppk -O private-openssh -o ~/.ssh/id_rsa</span></p>
<p>ssh-key.ppk ist hier der Schlüssel, der von Putty erstellt wurde.</p>
<p>Danach wird der private Schlüssel von open-ssh automatisch genutzt.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Pure-ftp on CentOS 5 Pt 1]]></title>
<link>http://geekstar.wordpress.com/2008/10/03/pure-ftp-on-centos-5/</link>
<pubDate>Fri, 03 Oct 2008 23:03:29 +0000</pubDate>
<dc:creator>geekstar</dc:creator>
<guid>http://geekstar.ru.wordpress.com/2008/10/03/pure-ftp-on-centos-5/</guid>
<description><![CDATA[I mostly work with Ubuntu because I like it.  You might say that I&#8217;m not a real Linux guy beca]]></description>
<content:encoded><![CDATA[<p>I mostly work with Ubuntu because I like it.  You might say that I'm not a real Linux guy because of this fact and I'm okay with that, you don't know me.  But because of some work requirements I am having to build up CentOS environments.  So I figured I would document the build for my own sanity.  This way when I have to build a similar one I have some instructions on what I did.</p>
<p>This is good news for me, and good news for you if you want to be like me and build servers.  This server is going to be a Pure-ftp server install.  So I'm going to have it setup for everything I need to have a working FTP server<br />
<!--more--><br />
So I guess we can start at the beginning.  I'm going to walk through the install steps that I did.  I don't really like the way that CentOS takes up so much space when you install a Graphical User Interface (GUI, I know most of you are thinking, "I'm not a moron I know what that means").  Luckily CentOS gives you lots of options in the installation.</p>
<p>I downloaded the DVD image here: http://isoredirect.centos.org/centos/5/isos/i386/</p>
<p>If you want the 64-bit version: http://isoredirect.centos.org/centos/5/isos/x86_64/</p>
<p>I am using the i386 version but I'm assuming the install goes pretty much the same way.</p>
<p>Once you have that, and a ready machine to install it on (mine is a virtual machine) then we are ready to begin.</p>
<p>So pop the CD in and boot up the machine to the CD.</p>
<p>Just hit enter at this screen.</p>
<p><img class="alignnone" title="Install Screen 1" src="http://geekstar.files.wordpress.com/2008/10/centos-1.jpg" alt="" width="500" height="372" /></p>
<p>The next screen asks you to check the CD, just go ahead and skip it.</p>
<p><img class="alignnone" title="Install Screen 2" src="http://geekstar.files.wordpress.com/2008/10/install-2.jpg" alt="" width="500" height="282" /></p>
<p>Then once it loads the GUI install screen hit next.</p>
<p><img class="alignnone" title="Install Screen 3" src="http://geekstar.files.wordpress.com/2008/10/install-3-1.jpg" alt="" width="500" height="375" /></p>
<p>Select the language.</p>
<p><img class="alignnone" title="Install Screen 4" src="http://geekstar.files.wordpress.com/2008/10/install-4-1.jpg" alt="" width="500" height="375" /></p>
<p>Choose your keyboard layout.</p>
<p><img class="alignnone" title="Install Screen 5" src="http://geekstar.files.wordpress.com/2008/10/install-5-1.jpg" alt="" width="500" height="375" /></p>
<p>Now my (virtual) disk was completey unformatted so I got this warning.  I just clicked yes.</p>
<p><img class="alignnone" title="Install Screen 6" src="http://geekstar.files.wordpress.com/2008/10/install-6-1.jpg" alt="" width="500" height="375" /></p>
<p>Now on this next screen I don't really need any special partitioning schemes.  I'm installing this on to an 8 GB disk and once I have it up on my servers I'm going to add like a 20 GB secondary disk.  <a title="How to Partition" href="http://tldp.org/HOWTO/Partition/requirements.html">If you don't know much about partitioning you should read this</a>.</p>
<p><img class="alignnone" title="Install Screen 7" src="http://geekstar.files.wordpress.com/2008/10/install-7-1.jpg" alt="" width="500" height="375" /></p>
<p>I told it to delete everything on the disk so it will throw a warning which I accept.</p>
<p><img class="alignnone" title="Install Screen 8" src="http://geekstar.files.wordpress.com/2008/10/install-8-1.jpg" alt="" width="500" height="375" /></p>
<p>On this you normally want to do a manual static IP address assignment.  But I'm not going to do that, because I am using DHCP assignments so this will have it's own reserved address on my network.  So while you might want to use a static address, I'm going to accept the default and use DHCP.</p>
<p><img class="alignnone" title="Install Screen 9" src="http://geekstar.files.wordpress.com/2008/10/install-9-1.jpg" alt="" width="500" height="375" /></p>
<p>Next you want to choose your time zone.</p>
<p><img class="alignnone" title="Install Screen 10" src="http://geekstar.files.wordpress.com/2008/10/install-10-1.jpg" alt="" width="500" height="375" /></p>
<p>Choose a password for the root login.  I recommend at least 8 characters, and using a random password generator making sure to include both capital and lowercase alphanumeric characters as well as symbols. (<em>ex. Niu!5a?L, but just so you know I didn't use this one</em>) I have these generated for me using a <a title="Random Password Generator" href="http://www.pctools.com/guides/password/">random password generator online</a>.<strong> </strong>I usually have it generate like 10-15 then I choose the ones I like.  Just make sure you can remember it.</p>
<p><img class="alignnone" title="Install Screen 11" src="http://geekstar.files.wordpress.com/2008/10/install-11-1.jpg" alt="" width="500" height="375" /></p>
<p>Next we are going to choose our environment.  I am looking for optimal performance in this server so I'm not going to choose a GUI, they just take up too many resources, so I am selecting server.  This will be command line only after the OS install.  Notice at the bottom how I selected "customize now" at the bottom of the screen.</p>
<p><img class="alignnone" title="Install Screen 12" src="http://geekstar.files.wordpress.com/2008/10/install-12-1.jpg" alt="" width="500" height="375" /><br />
Next we are going to choose some packages to install from the CD.  We are going to leave the defaults in most categories but we need to add and subtract a few here and there.  On this screen I chose that I wanted the development tools (this is so we can compile programs from source if neccessary).</p>
<p><img class="alignnone" title="Install Screen 13" src="http://geekstar.files.wordpress.com/2008/10/install-13-1.jpg" alt="" width="500" height="375" /></p>
<p>In the server category we are going to uncheck most of them.  I only left the mail server (in case I want to setup notifications later using a service monitor), server configuration tools, and at the very bottom even though you can't see it Windows file integration.</p>
<p><img class="alignnone" title="Install Screen 13" src="http://geekstar.files.wordpress.com/2008/10/install-13-1.jpg" alt="" width="500" height="375" /></p>
<p>After those customizations we hit next and move on and everything gets installed.</p>
<p><img class="alignnone" title="Install Screen 15" src="http://geekstar.files.wordpress.com/2008/10/install-15-1.jpg" alt="" width="500" height="375" /></p>
<p>It takes about 15-20 minutes.  But we are finally finished with the CentOS install.  Next we will add our apache, php, mysql, pureftp, and other goodies.  We didn't add them earlier because I like to have a little more control, I like to have the latest and greatest.  There are other cases where you want to install a certain version of apache or mysql and php because of support and what not.  Let's move on shall we?</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[SSH sem senha]]></title>
<link>http://rmbernardes.wordpress.com/?p=324</link>
<pubDate>Fri, 03 Oct 2008 14:25:50 +0000</pubDate>
<dc:creator>rmbernardes</dc:creator>
<guid>http://rmbernardes.ru.wordpress.com/2008/10/03/ssh-sem-senha/</guid>
<description><![CDATA[
Os passos a seguir explicam o procedimento de como acessar um sistema via ssh sem precisar digitar ]]></description>
<content:encoded><![CDATA[<p><a href="http://rmbernardes.wordpress.com/files/2008/10/ssh.jpg"><img class="alignnone size-full wp-image-325" style="border:0 none;" title="ssh" src="http://rmbernardes.wordpress.com/files/2008/10/ssh.jpg" alt="" width="264" height="415" /></a><br />
Os passos a seguir explicam o procedimento de como acessar um sistema via ssh sem precisar digitar uma senha.Isto pode ser útil na hora de criar um sistema de backup  usando o <a href="http://en.wikipedia.org/wiki/Secure_copy">scp</a> ou o <a href="http://en.wikipedia.org/wiki/Rsync">rsync</a>.</p>
<p>1.No micro <strong>CLIENTE</strong>, rode os seguintes comandos:<br />
<code>$ mkdir -p $HOME/.ssh<br />
$ chmod 0700 $HOME/.ssh<br />
$ ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P ''<br />
</code></p>
<p>Este comando retornará dois arquivos, $HOME/.ssh/id_dsa (chave privada) e $HOME/.ssh/id_dsa.pub (chave pública).</p>
<p>2.Copie a chave pública $HOME/.ssh/id_dsa.pub para o <strong>SERVIDOR</strong>:<br />
(dica)<br />
<code>scp $HOME/.ssh/id_dsa.pub servidor@host:/dir_desejado</code></p>
<p>3.No micro <strong>SERVIDOR</strong>, rode os seguintes comandos:<br />
<code>$ cat id_dsa.pub &#62;&#62; $HOME/.ssh/authorized_keys2<br />
$ chmod 0600 $HOME/.ssh/authorized_keys2<br />
</code></p>
<p>Dependendo da versão do OpenSSH, o seguinte comando é requerido:<br />
<code>$ cd $HOME/.ssh &#38;&#38; ln -s authorized_keys2 authorized_keys<br />
</code></p>
<p>4.No micro <strong>CLIENTE</strong>, teste o resultado:<br />
<code>$ ssh -i $HOME/.ssh/id_dsa server<br />
</code></p>
<p>Um teste feito com o rsync:<br />
<code># rsync -avz --delete --exclude=wp-config.php -e  "ssh -i /root/.ssh/id_dsa" root@172.16.18.8:/var/www/site /var/www/<br />
receiving file list ... done</code></p>
<p><code>sent 39 bytes  received 43125 bytes  86328.00 bytes/sec<br />
total size is 23200403  speedup is 537.49</code></p>
<p>Era isso!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Windows SSH Server]]></title>
<link>http://alexreg.wordpress.com/?p=31</link>
<pubDate>Wed, 01 Oct 2008 19:03:20 +0000</pubDate>
<dc:creator>Alex</dc:creator>
<guid>http://alexreg.ru.wordpress.com/2008/10/01/windows-ssh-server/</guid>
<description><![CDATA[This is a notice to anyone who might be interested in my open-source Windows SSH Server project. Win]]></description>
<content:encoded><![CDATA[<p>This is a notice to anyone who might be interested in my open-source <a href="https://launchpad.net/windows-ssh-server">Windows SSH Server</a> project. Windows SSH Server is a project I started earlier this year as an attempt to fully implement an SSH2 server using the .NET 3.5 framework (primarily C# with a bit of C++ for interfacing with Windows Console). The project is currently hosted on Launchpad. I have maintained a Bazaar repository of the entire source code.</p>
<p>It has grown to become just about usable now, providing a shell interface to any Windows Console application (e.g. cmd, PowerShell), though not yet programs such as <em>edit</em>. The protocol library SSH.NET has been written from scratch and is probably about 90% complete (minus extra features such as TCP port forwarding) and all the necessary cryptographic algorithms have been implemented/integrated in full. The main task in order to make it fully usable is finishing the Windows Console scanner (also very nearly usable) and then create a proper user-interface for authentication, which is currently hard-coded.  Of course, there are other aspects to the project such as the Windows Service (which is already working) and the admin interface, though they are not so important for the first release. I am also considering splitting the development into two seperate projects, one of them being the SSH server and the other an xterm shell for Windows Console applications (which would be utilised by the server). The main purpose of this is so that the xterm shell can be completed (or at least made stable) much sooner than the SSH server and can serve as a useful program by itself.</p>
<p>Unfortunately, although the project has come along very well I likely won't be able to find the time to work much on such a large project in the near future. (A one-man team was never going to finish the job!) I am nonetheless keen to maintain the project and see it become mature with the help of other experienced coders. If you're interested in contributing to Windows SSH Server (or the Windows Console xterm shell) in any way, please <a href="https://launchpad.net/~alexreg">contact me</a> via Launchpad and I'll be glad to answer any questions and possibly set you up as a developer.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[SSH Server einrichten]]></title>
<link>http://dmiceo.wordpress.com/?p=56</link>
<pubDate>Tue, 30 Sep 2008 14:50:36 +0000</pubDate>
<dc:creator>dmiceo</dc:creator>
<guid>http://dmiceo.ru.wordpress.com/2008/09/30/ssh-server-einrichten/</guid>
<description><![CDATA[&#8230; diesmal ausnahmsweise auf nem Debian Etch System:
Um SSH Zugriff auf einem Etch einzurichten]]></description>
<content:encoded><![CDATA[<p>... diesmal ausnahmsweise auf nem Debian Etch System:</p>
<p>Um SSH Zugriff auf einem Etch einzurichten muss ich lediglich, als Root, folgendes in der Konsole eingeben:</p>
<p style="padding-left:30px;"><span style="color:#808080;"><strong>apt-get install openssh-server</strong></span></p>
<p>Auf nem Ubuntu System dürfte das ähnlich gehn ... eben mit <em>sudo</em>.</p>
]]></content:encoded>
</item>

</channel>
</rss>
