<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cloudweavers &#187; openssh</title>
	<atom:link href="http://www.cloudweavers.org/tag/openssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cloudweavers.org</link>
	<description>Cutting-edge technology consultant</description>
	<lastBuildDate>Tue, 31 Jan 2012 13:56:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Swekey &#8211; An authentication gizmo for Windows, Mac OSX, GNU/Linux</title>
		<link>http://www.cloudweavers.org/2009/09/swekey-an-authentication-gizmo-for-windows-mac-osx-gnulinux/</link>
		<comments>http://www.cloudweavers.org/2009/09/swekey-an-authentication-gizmo-for-windows-mac-osx-gnulinux/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 18:20:05 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[mediawiki]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[sugarcrm]]></category>
		<category><![CDATA[swekey]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1307</guid>
		<description><![CDATA[Through my connection with PraizedMedia (a client of Les Laboratoires Phoenix- managed data infrastructure), I received a &#8216;Swekey&#8216; device. It look like an normal USB key, but their website seem to push toward something much more useful (and potentially dangerous). Hence, I decided to try it. It is advertised as : The swekey is a [...]]]></description>
			<content:encoded><![CDATA[<p>Through my connection with <a href="http://www.praizedmedia.com">PraizedMedia</a> (a client of Les Laboratoires Phoenix- managed data infrastructure), I received a &#8216;<a href="http://www.swekey.com/">Swekey</a>&#8216; device. It look like an normal USB key, but their website seem to push toward something much more useful (and potentially dangerous). Hence, I decided to try it.  It is advertised as  : </p>
<blockquote><p>The swekey is a small USB key that secures access to any swekey enabled web sites.<br />
Swekey secured web sites won&#8217;t let you login without your swekey plugged to your computer.<br />
The swekey can also be used to secure corporate&#8217;s intranet, unix servers access, and database administration.<br />
[...]</p></blockquote>
<p><div id="attachment_1306" class="wp-caption aligncenter" style="width: 470px"><img src="http://blog.pacharest.com/wp-content/uploads/2009/09/DSC09811-1024x767.jpg" alt="Swekey device" title="swekey" width="460" height="345" class="size-large wp-image-1306" /><p class="wp-caption-text">Swekey device, Photo by Pascal Charest</p></div><br />
The website mention integration with WordPress, SSH, putty, MediaWiki, Zabbix, Magento, SugarCRM&#8230; and much more&#8230; In fact they even speak about integration with any OpenID enabled websites &#8211; Might be very cool and interesting. Lets see how it work.<br />
<br />
I&#8217;m an hacker at heart, so I don&#8217;t normally read much of a device documentation, but in this case &#8211; I was lost. How is the device working? Is it a key with auto-run partition + dedicated browser, is it the equivalent of an RSA key, is there any software to install ? To answer my questions, what would be better that some tests in a protected GNU/Linux workstation (which is what normal people do : plug it in and see what happen):<br />
<br />
The device auto-detection work and recognize the device as an USB CDROM drive (from dmesg): </p>
<blockquote><p>usb 2-8: new full speed USB device using ohci_hcd and address 3<br />
usb 2-8: configuration #1 chosen from 1 choice<br />
Initializing USB Mass Storage driver&#8230;<br />
scsi10 : SCSI emulation for USB Mass Storage devices<br />
usbcore: registered new interface driver usb-storage<br />
USB Mass Storage support registered.<br />
usb-storage: device found at 3<br />
usb-storage: waiting for device to settle before scanning<br />
usb-storage: device scan complete<br />
scsi 10:0:0:0: CD-ROM            Musbe    Swekey           1.03 PQ: 0 ANSI: 0<br />
sr1: scsi-1 drive<br />
sr 10:0:0:0: Attached scsi CD-ROM sr1<br />
sr 10:0:0:0: Attached scsi generic sg3 type 5<br />
cdrom: This disc doesn&#8217;t have any tracks I recognize!<br />
usb 2-8: reset full speed USB device using ohci_hcd and address 3
</p></blockquote>
<p>Then : Nothing. No auto-mount, no dialog box&#8230; Kinda of left there. The partition cannot be mounted&#8230;<br />
<br />
Going to their website, I learn the official working steps: &#8220;BUY&#8221; (pseudo-done), &#8220;PLUG&#8221; (done), &#8220;REGISTER&#8221; (ugh?) and I&#8217;m &#8220;READY&#8221;. The REGISTER (the step I&#8217;m at, right ?) section give me an error of &#8216;missing plug-in&#8217; from Mozilla Firefox 3.0.14. Ok, browsing &#8220;Support&#8221;/&#8221;Download&#8221; inform me of missing dependencies (a software must be installed) to access the device. I download the <a href="http://http://www.swekey.com/index.php?sel=support&#038;option=downloads">x64 GNU/Linux version</a> and &#8230; hum ? </p>
<blockquote><p><strong>pcharest@hydra:~/Desktop/swekey$ cat README</strong><br />
Swekey client<br />
This package install:<br />
	- the swekey-client command line tool<br />
	- the swekey HAL module<br />
	- the swekey Mozilla plugin</p>
<p>The swekey-client command line tool gives you the list of plugged swekeys<br />
and let you calculate OTPs with them.</p>
<p>type:<br />
	swekey-client &#8211;help<br />
to get the available options</p>
<p>To install swekey-client just type:<br />
	sudo ./install<br />
or<br />
	./install<br />
if you are root</p>
<p>To uninstall swekey-client just type:<br />
	sudo ./uninstall<br />
or<br />
	./uninstall<br />
if you are root
</p></blockquote>
<p>I have no idea what is an <em>OTP</em> but let say I try installing the client:</p>
<blockquote><p>sudo ./install </p></blockquote>
<p>and validate the device is detected:</p>
<blockquote><p>./swekey-client &#8211;list</p></blockquote>
<p>It work and give me a device ID. Good, at least the device is known by the system. I still don&#8217;t know how it should work. I guess I should be installing the Mozilla plug-in the readme mentionned, but&#8230; I never found it. I guess the client install worked (and it was included) because after a Mozilla reload, the Manage section of their web page give (or might also be one of the random file I clicked on)  :</p>
<blockquote><p>Registration is not mandatory but it will allow you to disable a lost or stolen Swekey. </p></blockquote>
<p>So&#8230; I don&#8217;t really need to register the key&#8230; lets try it then (which I&#8217;ve been trying to do for quite a long time at this point).<br />
<br />
I own quite a few Zabbix servers, so, from the list of supported service : </p>
<blockquote><p>ZABBIX is an enterprise-class open source distributed monitoring solution.<br />
A swekey integration exists, it is still a patch but you can ask for it if you need to test it.
</p></blockquote>
<p>Ok, still want to test the device &#8211; So i try with MediaWiki:<br />
<br />
And it started to work well : creation of an account (user+password), then I get asked if I want to bind this account to my Swekey. This won&#8217;t allow me to auto-login but will require the key to be present in any computer (with the installed software) to access the account.<br />
<br />
<strong>Summary</strong>: As a summary, I&#8217;d say that while it give a boosted security (require the Swekey to log) &#8211; it does seem to go a bit over the limit of the permanent fight between conviviality and security. Installing the software is complicated and might be very problematic on system without administrator access&#8230; Personally, having tried both, I would prefer <a href="https://www.paypal.com/cgi-bin/webscr?cmd=xpt/Marketing_CommandDriven/securitycenter/PayPalSecurityKey-outside">Paypal key ID</a> to be integrated to more website. There is no need to &#8216;install&#8217; the software on any computer and it give you the same added security the Swekey does. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/09/swekey-an-authentication-gizmo-for-windows-mac-osx-gnulinux/feed/</wfw:commentRss>
		<slash:comments>540</slash:comments>
		</item>
		<item>
		<title>top sysadmin stuff</title>
		<link>http://www.cloudweavers.org/2009/03/top-sysadmin-stuff/</link>
		<comments>http://www.cloudweavers.org/2009/03/top-sysadmin-stuff/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 13:45:37 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[freesoftware]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[ossec]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[zabbix]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=1053</guid>
		<description><![CDATA[Being challenged everyday to augment my productivity, here is a few quick tricks/software helping system administrator. 1. BlackBerry Yeah, I know. It was an easy one &#8211; and easy to expect since I&#8217;ve bought a Storm. Employees get to hate them (since they are always hooked to the business) but as owner of a small [...]]]></description>
			<content:encoded><![CDATA[<p>Being challenged everyday to augment my productivity, here is a few quick tricks/software helping system administrator.<br />
<br />
<strong>1. <a href="http://www.blackberry.com/">BlackBerry</a></strong><br />
<br />
Yeah, I know. It was an easy one &#8211; and easy to expect since I&#8217;ve bought a Storm. Employees get to hate them (since they are always hooked to the business) but as owner of a small business, I NEED to be informed of everything going on. The ability of answering my email / instant messanging while in route between Montreal &#038; Ottawa is of prime importance. My clients doesn&#8217;t need to know where I am or what I am doing, they know I&#8217;m ready to help them.<br />
<br />
The BlackBerry by itself is not as feature-complete as the iPhone seem to be. Using the pre-loaded email client with gmail just doesn&#8217;t cut it.  It&#8217;s using IMAP and discarding all your filter/labels for incoming messages. There is an alternative : gmail mobile application. Available from the <a href="http://m.google.com">central mobile application repository</a> of Google. Using a customized alert setting, you can be informed when you have new mail (in your inbox), while preserving your filter/label configuration. While you are there, you should also install the maps application, can always be handy.<br />
<br />
Another &#8220;must-have&#8221; app. for sysadmin is <a href="http://www.xk72.com/midpssh/">MidpSSH</a>. Which, as its name make it pretty clear, is a SSH/Telnet client. There have been a few reports of incompatibility between Storm and midpssh &#8211; yet, with an up-to-date OS/taking into account that your device often capitalize the first letter (of a username)/openssh is case-sensitive, you should not have any problems to connect to GNU/Linux systems.<br />
<br />
<strong>2. Monitoring software</strong><br />
<br />
A good monitoring system watching over your network is a life saver and all the difference between you informing your client of a system failure or the other way around. <a href="http://www.nagios.org/">Nagios</a> is pretty well known and getting help is very easy since the community is so dynamic. Another software doing the same job is <a href="http://www.zabbix.org">Zabbix</a>. I do have some predisposition toward it, being a certified expert. Both are free softwares and are easy to install/configure. Zabbix does have a cuter interface though &#8211; can become handy if your client require access.<br />
<br />
Both software allows sysadmins to run remote command. Personally, I find those systems to be way too complicated to setup when <a href="http://mmonit.com/monit/">Monit</a> is easily available. Its configuration allow a syntax very similar to :<em> if load > 5 for 10 minutes, then stop postfix-delivery</em>. Another life saver when you don&#8217;t expect your remote monitoring agent to be able to launch a command. I use it for limits like (<em>if load>80 for 2 minutes, then stop {httpd,mysqld}</em>). If your system is badly losing interactivity, your normal remote monitoring software will never be able to save your system (ssh will timeout).<br />
<br />
<strong>3. Log/Security software</strong><br />
<br />
While Zabbix/nagios can do some checksum on important files (such as /etc/passwd, /etc/shadow, &#8230;), they are not ready as IDS (Intrusion Detection System) yet. For such system, I recommend <a href="http://www.ossec.net/">OSSEC</a>. Following the online documentation, you will have a log-analysis system created in no time &#8211; using thousand of rules given with the software. Customization can also be done pretty quickly. The &#8216;action&#8217; following a trigger can be email-alert or a command. The system come with a pre-built interface to iptables&#8230; port-scanning and brute force password testing are no more.<br />
<br />
<em>Add to all these tools a svn repository for your code, an Puppet system for global configuration and some wiki for documentation and you should have a pretty strong backbone to deal with anything your clients throws at you. </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2009/03/top-sysadmin-stuff/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		</item>
		<item>
		<title>hashing the know_hosts file</title>
		<link>http://www.cloudweavers.org/2008/08/hashing-the-know_hosts-file/</link>
		<comments>http://www.cloudweavers.org/2008/08/hashing-the-know_hosts-file/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 16:29:58 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[procrastination]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[consultant]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=657</guid>
		<description><![CDATA[OpenSSH client keep a fingerprint of servers to which connections (ssh-client) have been made. Such fingerprints are stored in .ssh/know_hosts and are automatically compared with the current server fingerprint on connection acknowledgment. Hence, the .ssh/known_hosts file is crucial to system security against man-in-the-middle attack in a networked environment. This file is also a very very [...]]]></description>
			<content:encoded><![CDATA[<p>OpenSSH client keep a fingerprint of servers to which connections (ssh-client) have been made. Such fingerprints are stored in .ssh/know_hosts and are automatically compared with the current server fingerprint on connection acknowledgment.<br />
<br />
Hence, the <em>.ssh/known_hosts</em> file is crucial to system security against man-in-the-middle attack in a networked environment. This file is also a very very good vector of attack on system administrator computer and hashing the content of the file is a good practices. Especially with the current wave of big bugs hitting GNU/Linux systems.<br />
<br />
The first step is to enable hashing of the new fingerprints:<br />
</p>
<blockquote><p># cat /etc/ssh/ssh_config<br />
Host *<br />
    SendEnv LANG LC_*<br />
    HashKnownHosts yes<br />
    GSSAPIAuthentication no<br />
    GSSAPIDelegateCredentials no<br />
    TCPKeepAlive yes<br />
    ServerAliveInterval 60
</p></blockquote>
<p>
The &#8220;<em>HashKnownHosts yes</em>&#8221; configuration option is the way to go &#8211; it is a general setting affecting all users on your system (<em>Host *</em>). If you don&#8217;t have access to the central ssh_config option, don&#8217;t forget you have personalized user setting in <em>.ssh/config</em>.<br />
<br />
This enable the hashing of future fingerprints. To modify your actual file, use the following <em>ssh-keygen</em> command. Your unmodified know_hosts will be save as know_hosts.old .<br />
</p>
<blockquote><p># ssh-keygen -H -f .ssh/know_hosts </p></blockquote>
<p>
Have fun, stay safe. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2008/08/hashing-the-know_hosts-file/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>High performance SSH/SCP</title>
		<link>http://www.cloudweavers.org/2008/02/high-performance-sshscp/</link>
		<comments>http://www.cloudweavers.org/2008/02/high-performance-sshscp/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 21:15:21 +0000</pubDate>
		<dc:creator>pascal.charest</dc:creator>
				<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Technique]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.pacharest.com/?p=567</guid>
		<description><![CDATA[The article here, about high performance optimization to the SSH process, has been doing quite a few waves. I still post it on my blog since some people might have missed it (shame on you!). In a very short summary : lets say that it&#8217;s a patch to allow for dynamic resizing of the internal [...]]]></description>
			<content:encoded><![CDATA[<p>The article <a href="http://www.psc.edu/networking/projects/hpn-ssh/">here</a>, about high performance optimization to the SSH process, has been doing quite a few waves. I still post it on my blog since some people might have missed it (shame on you!). <br />
<strong><br />
In a very short summary </strong>: lets say that it&#8217;s a patch to allow for dynamic resizing of the internal flow control buffer in OpenSSH. It also multi-thread the crypto part. In other words, you  get speed, you don&#8217;t lose much, on link where you own both end-point.</p>
<p>You still need to be a bit careful, there is a lot of talk of why it <strong>WON&#8217;T</strong> be integrated in&nbsp; the official OpenSSH release. But hey, if Leif Nixon and Robert G. Brown like it, jeez&#8230;. I guess it must not be that bad.<br />
<strong><br />
Note :</strong> For those who don&#8217;t know those names, they are kind of &quot;local&quot; heros in the Beowulf clustering field.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cloudweavers.org/2008/02/high-performance-sshscp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

