<?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>Jan-Piet Mens &#187; SSH</title>
	<atom:link href="http://blog.fupps.com/category/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fupps.com</link>
	<description>my animals and other friends</description>
	<lastBuildDate>Sat, 31 Jul 2010 14:34:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Manage your network with BlackBerry</title>
		<link>http://blog.fupps.com/2009/01/15/manage-your-network-with-blackberry/</link>
		<comments>http://blog.fupps.com/2009/01/15/manage-your-network-with-blackberry/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 10:02:15 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[DomiNotes]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[domino]]></category>
		<category><![CDATA[mobile admin]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=1910</guid>
		<description><![CDATA[Searching for Idokorro&#039;s Mobile SSH turned up a blank as the company has been renamed (I hate that!) into Rove. They appear to have rolled the Mobile SSH product into something called Mobile Admin, and I&#039;ve taken that for a very short spin.
After the usual install on a Windows server, including dot.net and a SQL [...]]]></description>
			<content:encoded><![CDATA[<p>Searching for Idokorro&#039;s Mobile SSH turned up a blank as the company has been renamed (I hate that!) into <a href="http://www.roveit.com/">Rove</a>. They appear to have rolled the Mobile SSH product into something called <a href="http://www.roveit.com/mobileadmin/overview/">Mobile Admin</a>, and I&#039;ve taken that for a very short spin.</p>
<p>After the usual install on a Windows server, including dot.net and a SQL server or the integrated thingie, I can connect with a BlackBerry Web browser to the IP of the Mobile Admin server and download the necessary software <acronym title="Over The Air">OTA</acronym>.</p>
<p>When I start it, I&#039;m welcomed with a login screen on my device, where I get to enter my credentials:</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-01.png' style='border: 1px solid;' /></p>
<p>Then, I better get used to seeing this:</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-02.png' style='border: 1px solid;' /></p>
<p>I get a list of servers I may manage.</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-03.png' style='border: 1px solid;' /></p>
<p>If allowed to, I can add a server to this list from my BlackBerry handheld, or via the Mobile Admin Web interface, which looks identical in a normal Web browser (yes: Firefox is supported) to what I see on my hand held device.</p>
<p>I then select the server I want to connect to</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-04.png' style='border: 1px solid;' /></p>
<p>and Mobile Admin connects to that server. It then shows me the tasks that I may perform on that server. This is an example of a Windows machine:</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-05.png' style='border: 1px solid;' /></p>
<p>So, for example, I can open the Task manager</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-06.png' style='border: 1px solid;' /></p>
<p>have Mobile Admin show me the processes running on the server</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-08.png' style='border: 1px solid;' /></p>
<p>and kill one of them:</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-09.png' style='border: 1px solid;' /></p>
<p>If I connect to a Lotus Domino server, I see:</p>
<p><img src='http://blog.fupps.com/wp-content/media/2009/rovma01-10.png' style='border: 1px solid;' /></p>
<p>Mobile Admin&#039;s <a href="http://www.roveit.com/mobileadmin/features/">feature list</a> is impressive and contains MS Windows, Active Directory, BlackBerry Enterprise Server, Lotus Domino, Oracle, IBM Mainframes (i.e. 3270 client) as well as Unix/Linux servers (i.e. ssh).</p>
<p>The product looks promising, the price tag does as well. Approximately USD 600 per user plus maintenance.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2009/01/15/manage-your-network-with-blackberry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>deepOfix Mail Server</title>
		<link>http://blog.fupps.com/2007/08/20/deepofix-mail-server/</link>
		<comments>http://blog.fupps.com/2007/08/20/deepofix-mail-server/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 18:33:50 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[DAD/miniDAD]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/2007/08/20/deepofix-mail-server/</guid>
		<description><![CDATA[deepOfix is a mail server in a box licensed under the GPL. 

deepOfix is LDAP-driven with an OpenLDAP server, brings SpamAssassin and ClamAV support with it and offers Webmail and the ubiquitious SMTP, POP3 and IMAP services.
I spent an hour test driving this software and it looks good. A clean web interface to manage the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://deeproot.in/deepofix">deepOfix</a> is a mail server in a box licensed under the GPL. </p>
<p><img src="http://blog.fupps.com/wp-content/media/2007/deepofix2.jpg" width="460" height="345" alt=""/></p>
<p><em>deepOfix</em> is <a href="http://deeproot.in/deepofix/features/ldap-support">LDAP-driven</a> with an <a href="http://www.openldap.org/">OpenLDAP</a> server, brings SpamAssassin and ClamAV support with it and offers Webmail and the ubiquitious SMTP, POP3 and IMAP services.</p>
<p>I spent an hour test driving this software and it looks good. A clean web interface to manage the lot, shell access for <em>root</em> and optionally for individual users offer what a small business would need.</p>
<p>Note to self: keep an eye on this project.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2007/08/20/deepofix-mail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restricting SSH to Copy Files Only</title>
		<link>http://blog.fupps.com/2006/09/28/restricting-ssh-to-copy-files-only/</link>
		<comments>http://blog.fupps.com/2006/09/28/restricting-ssh-to-copy-files-only/#comments</comments>
		<pubDate>Thu, 28 Sep 2006 11:31:23 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/2006/09/28/restricting-ssh-to-copy-files-only/</guid>
		<description><![CDATA[I need to provide secure file copy to clients, simultaneously forbidding them to log in to our systems. To this effect I&#039;m looking at rssh, the restricted shell for use with OpenSSH and the other alternative known to me, which is scponly.
Both tools do their job. rssh is more flexible in its configuration, and I [...]]]></description>
			<content:encoded><![CDATA[<p>I need to provide secure file copy to clients, simultaneously forbidding them to log in to our systems. To this effect I&#039;m looking at <a href="http://www.pizzashack.org/rssh/">rssh</a>, the <em>restricted shell</em> for use with <a href="http://www.openssh.com/">OpenSSH</a> and the other alternative known to me, which is <a href="http://www.sublimation.org/scponly/">scponly</a>.</p>
<p>Both tools do their job. <a href="http://www.pizzashack.org/rssh/">rssh</a> is more flexible in its configuration, and I know for a fact that it is also used by some large Internet Service Providers (ISP). Both tools support <a href="http://en.wikipedia.org/wiki/Chroot">chroot jails</a> which is good.</p>
<p><a href="http://www.pizzashack.org/rssh/">rssh</a> appears to have the better logging features, but it lacks subdirectories in <em>chroot</em> jails.</p>
<p>On the other hand, <a href="http://www.sublimation.org/scponly/">scponly</a> supports home-directories in the <em>chroot</em> environment with the <tt>//</tt> syntax (<tt>/var/chroot//home/jpm</tt>), meaning the <em>chroot jail</em> is in <tt>/var/chroot</tt> and the initial working directory is in <tt>/home/jpm</tt> thereunder. Unfortunately, there is no way to lock a user into the <em>jailed</em> home except by restricting permissions of the directories above (more like security through obscurity). I could of course create a <em>chroot</em> for each user, but that is cumbersome and a huge waste of disk space&#8230;</p>
<p>I&#039;ve tested both tools with OpenSSH&#039;s <a href="http://en.wikipedia.org/wiki/SFTP">SFTP</a>, as well as with Windows versions of <a href="http://winscp.net/">WinSCP</a> and <a href="http://filezilla.sourceforge.net/">FileZilla</a> without any issues, but I still have to make up my mind on which to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/09/28/restricting-ssh-to-copy-files-only/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hardening Linux</title>
		<link>http://blog.fupps.com/2006/08/21/hardening-linux/</link>
		<comments>http://blog.fupps.com/2006/08/21/hardening-linux/#comments</comments>
		<pubDate>Mon, 21 Aug 2006 06:02:00 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[IMAP]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=510</guid>
		<description><![CDATA[This book fully covers the ground in securing a Linux system. Hardening Linux by James Turnbull (who also authored Pro Nagios 2.0) packs all you need to know about getting a Linux system secured into a single five-hundred page volume. 
Turnbull takes the reader in a fast-paced but very comprehensive fashion through the arduous tasks [...]]]></description>
			<content:encoded><![CDATA[<p>This book fully covers the ground in securing a Linux system. <a href="http://www.apress.com/book/bookDisplay.html?bID=395">Hardening Linux</a> by James Turnbull (who also authored <a href="http://blog.fupps.com/2006/05/27/pro-nagios-20/">Pro Nagios 2.0</a>) packs all you need to know about getting a Linux system secured into a single five-hundred page volume. </p>
<p>Turnbull takes the reader in a fast-paced but very comprehensive fashion through the arduous tasks of closing up the open holes in a Red-Hat or Debian &#8211; based Linux distribution, and he covers all major topics which include unlikely candidates such as the virtual terminals on the console, immutable files and capabilities, system logging, rootkits, and penetration detection and recovery.</p>
<p>After reading up on the basics which include users &#038; passwords, Pluggable Authentication Modules (PAM), and information on hardening the Linux kernel and the boot loaders, the reader gets an excellent introduction to firewalling with <em>iptables</em> with a whole firewall script for a bastion host in the appendix. That is followed by a full chapter devoted to securing connections with SSL/TLS and remote administration with <a href="http://blog.fupps.com/2006/06/25/pro-openssh/">ssh</a>.<img src='/wp-content/media/hardlinux.gif' alt='' style="float: right; padding: 4px; "/> </p>
<p>Chapter four is dedicated to securing files and file systems, and includes a section on encrypted file systems to safekeep your data, as well as a walk-through <a href="http://sourceforge.net/projects/tripwire/">Tripwire</a>. That is followed by a comprehensive look at logging with syslog and syslog-ng, and this chapter includes a discussion and tools related to log analysis and correlation.</p>
<p>NMAP, Nessus and network sniffers make up the bulk of the security testing tools with which Turnbull rightly suggests we check our work after having hardened the basic system. These are covered on fourty pages.</p>
<p>Although Mr. Turnbull recommends Postfix, he covers both that and <a href="http://www.sendmail.org">Sendmail</a>, carefully noting that he doesn&#039;t want to contribute to the <em>&#034;my mail server is better than yours&#034;</em> wars. On over fifty pages, the two mail transport agents (MTA) are given careful consideration as to making them as secure as possible. In a further chapter aptly titled <em>Authenticating and Securing Your Mail</em>, the author covers SSL/TLS certificate generation with OpenSSL as well as SMTP authentication (SMTP AUTH) with Cyrus SASL, for both flavors of mail server.</p>
<p>As far as access to mail is concerned, the Cyrus IMAP server is well documented in chapter nine, and the last two chapters guide the reader through securing FTP servers as well as the BIND name server.</p>
<p>Every person responsible for installing a Linux server must read this book! There is of course also detailed information to be gathered from dedicated books which cover the individual subsystems (such as those for <a href="http://blog.fupps.com/2006/07/06/pro-dns-and-bind/">DNS &#038; BIND</a>, <a href="http://blog.fupps.com/2006/06/25/pro-openssh/">OpenSSH</a>, etc.), but I strongly encourage every system administrator to have a copy of this excellent book on his or her desk.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/08/21/hardening-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Please Review DAD/miniDAD</title>
		<link>http://blog.fupps.com/2006/07/03/please-review-dadminidad/</link>
		<comments>http://blog.fupps.com/2006/07/03/please-review-dadminidad/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 13:16:56 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[DAD/miniDAD]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=456</guid>
		<description><![CDATA[Our VMware appliance DAD/miniDAD, the LDAP-controlled CentOS server with embedded preconfigured Ubuntu miniDAD clients that &#034;know&#034; how to contact DAD is still available for download, and we&#039;d appreciate some feedback.
The combination of the two appliances in one is quite interesting, and they even contain an LDAP-controlled software distribution system we developed specially for DAD &#38; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/jpmens/152404002/" title="DAD &amp; miniDAD Logo"><img src="http://static.flickr.com/53/152404002_090f6b73da_t.jpg" alt="DAD-miniDAD" style="float: left;" height="68" width="100"/></a>Our VMware appliance <a href="http://www.vmware.com/vmtn/appliances/directory/209">DAD/miniDAD</a>, the <i>LDAP-controlled CentOS server with embedded preconfigured Ubuntu miniDAD clients that &#034;know&#034; how to contact DAD</i> is still available for <a href="http://www.vmware.com/vmtn/appliances/directory/209">download</a>, and we&#039;d appreciate some feedback.</p>
<p>The combination of the two appliances in one is quite interesting, and they even contain an <a href="http://blog.fupps.com/2006/05/25/ldap-controlled-software-deployment/">LDAP-controlled software distribution system</a> we developed specially for <i>DAD &amp; miniDAD</i>.</p>
<p>We&#039;ve created DAD for the enterprise administrator who wants to easily deploy Open Source to the site&#039;s user-base and who wants a migration path. All utilities supplied with DAD are geared towards making the process both painless and efficient. We&#039;ve even included a utility which, when run on a Windows server, will export a list of users in such a way as that these can easily be imported into DAD. Alternatively, an NT trust can be set up between DAD  and the Windows world.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/07/03/please-review-dadminidad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pro OpenSSH</title>
		<link>http://blog.fupps.com/2006/06/25/pro-openssh/</link>
		<comments>http://blog.fupps.com/2006/06/25/pro-openssh/#comments</comments>
		<pubDate>Sun, 25 Jun 2006 10:30:00 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[Books]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=436</guid>
		<description><![CDATA[If you are new to OpenSSH, don&#039;t let the &#034;Pro&#034; in the title scare you off; the first half of the 270-page book is just what you need: the first two chapters of Pro OpenSSH are of an introductory nature and introduce the reader to the insecurity of the legacy R-tools and telnet as well [...]]]></description>
			<content:encoded><![CDATA[<p>If you are new to <a href="http://www.openssh.com/">OpenSSH</a>, don&#039;t let the &#034;Pro&#034; in the title scare you off; the first half of the 270-page book is just what you need: the first two chapters of <a href="http://apress.com/book/bookDisplay.html?bID=427">Pro OpenSSH</a> are of an introductory nature and introduce the reader to the insecurity of the legacy R-tools and telnet as well as a quick implementation of <a href="http://www.openssh.com/">OpenSSH</a> and a short introduction to the excellent <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/">PuTTY</a>, an SSH client for Windows (this is expanded on in an appendix).</p>
<p>In part 2, <i>Michael Stahnke</i> discusses the configuration of <a href="http://www.openssh.com/">OpenSSH</a> starting with a detailed look at the files required by the client and the server portions of the program including manual-page-like descriptions of the keywords in <code>sshd_config</code> and the options and syntax of the command-line tools. The chapter on Authentication digs into Public Key Authentication, key generation and distribution as well as key management (also taken onto a new level in a later chapter), and agent forwarding. This is a must-read for anyone who uses SSH to connect to more than one host.</p>
<p><a href="http://apress.com/book/bookDisplay.html?bID=427"><img src="http://apress.com/ApressCorporate/supplement/1/427/bcm.gif" alt="" style="float: right; padding: 4px;" /></a>The advanced topics start in part 3, and this is where the &#034;Pro&#034; begins. The complex topic <i>TCP forwarding</i> is well explained and a number of diagrams help the reader to better understand the nitty-gritty of setting up tunnels with <a href="http://www.openssh.com/">OpenSSH</a>. </p>
<p>The most interesting chapter I found next; <i>Managing your OpenSSH Environment</i>, in which the author introduces an <a href="http://www.openssh.com/">OpenSSH</a> secure gateway that can be used in large environments. Securing <a href="http://www.openssh.com/">OpenSSH</a>, SSH- and Key-Management are followed by SSHFP(Secure Shell Fingerprints) (<a href="http://www.ietf.org/rfc/rfc4255.txt">RFC 4255</a>), a method to store public host keys in DNS. Stahnke implements a method for distributing public keys using RPM(RedHat Package Manager). Although that is interesting in itself, I strongly missed a discussion on storing <a href="http://blog.fupps.com/2006/03/02/ssh-public-keys-from-ldap/">SSH public keys in an LDAP directory</a>; a must-have IMHO.</p>
<p>Part 4 of <a href="http://apress.com/book/bookDisplay.html?bID=427">Pro </a><a href="http://www.openssh.com/">OpenSSH</a> deals with Administration. Sundry Shell and Perl scripts in real-world examples give the reader a good look into the capabilities of using <a href="http://www.openssh.com/">OpenSSH</a> in her own tools on her own systems. Last but not least, the appendices focus on alternative SSH clients and SSH on Windows.</p>
<p>Even if you have, like I have, already read <a href="http://www.oreilly.com/catalog/sshtdg/">SSH, The Secure Shell</a>, Apress&#039; <a href="http://apress.com/book/bookDisplay.html?bID=427">Pro OpenSSH</a> is well worth reading. I give it an 8/10.</p>
<p><!--adsense--></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/06/25/pro-openssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozilla Extension for Monitoring Whatever</title>
		<link>http://blog.fupps.com/2006/06/06/firefox-extension-for-monitoring-whatever/</link>
		<comments>http://blog.fupps.com/2006/06/06/firefox-extension-for-monitoring-whatever/#comments</comments>
		<pubDate>Tue, 06 Jun 2006 19:17:00 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Nagios]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[whatmon]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=409</guid>
		<description><![CDATA[I spend a good part of any day in my favorite web browser, and even if I don&#039;t see its whole window, the lower right part of the status bar is always visible under a pile of other application windows (mostly SSH sessions). That status bar is the ideal place to put up a small [...]]]></description>
			<content:encoded><![CDATA[<p>I spend a good part of any day in my favorite web browser, and even if I don&#039;t see its whole window, the lower right part of the status bar is always visible under a pile of other application windows (mostly SSH sessions). That status bar is the ideal place to put up a small monitor with which I can keep an eye on a number of important servers, without having to wait for alerts sent to me by <a href="http://www.nagios.org">Nagios</a>.</p>
<p>To this effect I have created a tiny Firefox and Thunderbird extension called <i>whatmon</i>, which can monitor almost anything you wish to monitor. Number of logged on users? Current load average? Health of your LDAP servers? Mail server queues? No problem for <i>whatmon</i>, as long as you can create a CGI(Common Gateway Interface) program in Perl, C, or any other language you are comfortable with, or even a PHP or Active-Whatever script which runs on your web server and can produce a wee bit o&#039; XML(eXtensible Markup Language). There is one thing that <i>whatmon</i> can&#039;t watch: the web server from which it retrieves that XML &#8230; <img src='http://blog.fupps.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><i>whatmon</i> periodically reads a short bit of XML text from a web server (in my case: <a href="http://httpd.apache.org">Apache</a>). The XML contains an integer status and a single line of text. In practice, that line of text can contain whatever the administrator desires. I want an indication of the health of the mail queues on a number of mail servers we have inhouse. The line of text therefore contains two-letter codes with which I can identify the hostname of the mail server in question as well as a count of mails on the queue for each of the servers in question.</p>
<p>The program that produces that line of text also returns a numeric integer indicating okay, warning or critical so that the extension can colour-code the status bar accordingly. <a href="http://fupps.com/extensions/whatmon/sample.xml">Sample XML</a>.</p>
<p>I&#039;ve tried to keep this as simple as possible so as to not overcomplicate the extension proper (and because creating Mozilla extensions is about the worst I&#039;ve ever had to do <img src='http://blog.fupps.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ). Each of the labels and values on the status bar could have been individually described in the extension, but then it would require modification whenever something changes. I didn&#039;t want that to happen.</p>
<p>The extension requires two preferences to be set. I&#039;ve named these <code>whatmon.url</code> and <code>whatmon.refresh</code>. They are the URL from which the XML is to be read and the frequency in seconds in which the extension should do a GET request from the URL.</p>
<p>Use the configuration editor in Firefox or Thunderbird to create or change these settings. To call up the preference settings in Firefox, go to the URL <code>about:config</code>. In Thunderbird choose <i>Tools => Options => Advanced => General => Config Editor</i>. Create the two new settings by right-clicking on the page an choosing New => String. Enter <code>whatmon.url</code> as the preference name and the URL to your service (e.g. <code>http://example.com/monit.php</code> as its value. Repeat that step, for a new integer value, naming it <code>whatmon.refresh</code> and give it an integer number of seconds after which the extension should refresh the status bar. I&#039;d think 120 or 60 should do the trick nicely. The preferences for <i>whatmon</i> should then resemble this:</p>
<p><img src='/wp-content/media/whatmonconfig.png' alt='Preferences' /> </p>
<p>After restarting Firefox or Thunderbird, <i>whatmon</i> will then periodically perform a GET request on the URL set in the <code>whatmon.url</code> preference.</p>
<p><img src='/wp-content/media/whatmonnprocs.png' alt='Sample' /></p>
<p>The actual monitoring program is part of your web server, and it can be written in any language supported by the latter. It will return a tiny bit of XML text specifying both a status code and a string that <i>whatmon</i> will print to the status bar of Firefox or Thunderbird.</p>
<p>This <a href="http://fupps.com/extensions/whatmon/simple.sh">simple example shell script</a> displays the number of currently running processes on the server.</p>
<p>Visit <a href="http://fupps.com/extensions">fupps.com/extensions</a> to download.</p>
<p>Can this be improved on? You bet! Firefox and/or Thunderbird need restarting whenever the URL preference changes. A nice options dialog with which the extension&#039;s preferences can be set would be welcome. Instead of plain text on the labels, I&#039;d have liked to display images generated by the web server which change as the status changes. Any takers?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/06/06/firefox-extension-for-monitoring-whatever/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH Public Keys from LDAP</title>
		<link>http://blog.fupps.com/2006/03/02/ssh-public-keys-from-ldap/</link>
		<comments>http://blog.fupps.com/2006/03/02/ssh-public-keys-from-ldap/#comments</comments>
		<pubDate>Thu, 02 Mar 2006 13:32:36 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=346</guid>
		<description><![CDATA[OpenSSH is the free version of the SSH suite of tools. Contrary to _telnet_ or _rlogin_, _ssh_ allows a user to safely connect to a remote system because all traffic (specially a user&#039;s credentials) are encrypted.
SSH(Secure Shell) also supports public-key authentication. Public-key authentication allows you to connect to a remote server without sending your password [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.opendarwin.org/en/projects/openssh-lpk/"><img style='float:left; padding: 8px; ' src='/wp-content/media/ldappubkey.gif' alt='LDAPpubkey' /></a><a href="http://www.openssh.org">OpenSSH</a> is the free version of the SSH suite of tools. Contrary to _telnet_ or _rlogin_, _ssh_ allows a user to safely connect to a remote system because all traffic (specially a user&#039;s credentials) are encrypted.</p>
<p>SSH(Secure Shell) also supports public-key authentication. Public-key authentication allows you to connect to a remote server without sending your password over the Internet. Public-key authentication uses two keys, a private key that only you have, and the public key, which is placed on the server you wish to gain access to, usually by yourself, adding your public key to the <code>~/.ssh/authorized_keys</code> file. There is a nice introduction to public key authentication with SSH <a href="http://cfm.gs.washington.edu/security/ssh/client-pkauth/">here</a>, and <a href="http://uaahosting.uaa.alaska.edu/axjww/sshkey/">another one here</a>.</p>
<p>That is all very well when you only have a couple of machines you want to log in to, but what happens when you have dozens or more? You have to maintain your public keys on all those systems, ensuring they are kept up to date. God forbid that you loose your private key, or that it becomes compromised: you&#039;d have to _quickly_ change all the <code>authorized_keys</code> files on all machines!</p>
<p>Enter LDAP. Eric Auge has made a patch to <a href="http://www.openssh.org">OpenSSH</a> which allows the SSH server (<a href="http://www.openbsd.org/cgi-bin/man.cgi?query=sshd">sshd</a>) to read the public keys from an LDAP directory. I&#039;ve tested it with <a href="http://www.openldap.org">OpenLDAP</a> and the patch works like a charm.</p>
<p>After patching the source of <a href="http://www.openssh.com/portable.html">portable OpenSSH</a> (I used <a href="http://openssh.linux-mirror.org/portable/openssh-4.1p1.tar.gz">version 4.1p1</a>) with Eric&#039;s <a href="http://www.opendarwin.org/en/projects/openssh-lpk/">OpenSSH  LDAP Public Key Patch</a> corresponding to the OpenSSH version you downloaded, it is a matter of following the good instructions in <code>README.lpk</code>, adjusting your <i>./configure</i> invocation according to the flavor of the day. After building, installing and restarting the patched OpenSSH, ensure you can still log on to your system.</p>
<p>Now add the LDAP options to your <code>sshd_config</code> file, adjusting the settings to suit your LDAP directory information tree, and restart _sshd_.  Add the schema file <code>openldap-lpk.schema</code> to your <code>slapd.conf</code> and restart your directory server. </p>
<p>Add an object of class _ldapPublicKey_ to your LDAP user entry, ensuring that you also have a _posixAccount_ (<i>sshd</i> constructs the LDAP search filter by and-ing both object classes and the userid of the person logging on), and add one or more _sshPublicKey_ attribute types. My LDIF now looks like this:</p>
<pre>
<code>
dn: uid=jpm,ou=People,dc=fupps,dc=com
sn: Mens
cn: Jan-Piet Mens
gecos: JP Mens
uidNumber: 400
gidNumber: 400
uid: jpm
homeDirectory: /home/jpm
loginShell: /bin/bash
objectClass: inetOrgPerson
objectClass: person
objectClass: ldapPublicKey
objectClass: posixAccount
sshPublicKey: ssh-rsa CAr9x8...
sshPublicKey: environment="LDP_USER=jpm" ssh-rsa AAAAB...
</code>
</pre>
<p>I can now connect to all machines which have an _sshd_ appropriately set up, without needing to distribute my public keys. [In case you are wondering about the _environment_ option in the second public-key: that is for <a href="http://blog.fupps.com/2006/02/25/ldap-distributed-shell-profile-ldp/">ldp, my LDAP distributed shell profile</a>; have a look at that too!] </p>
<p>Isn&#039;t that insecure? Well, not if you are careful. _sshd_ will only allow you to connect if you already a a &#034;local&#034; user (i.e. if sshd can find your username on the local system). That doesn&#039;t necessarily mean that you have an entry in <code>/etc/passwd</code>; it means that whatever underlying mechanism your systems use to determine whether your username is valid to log on to the machine, they have reported that you are a valid user. These mechanisms could be any combination of PAM(Pluggable Authentication Modules), NSS(Name Server Switch), etc.</p>
<p>So before letting the <a href="http://www.opendarwin.org/en/projects/openssh-lpk/">OpenSSH  LDAP Public Key Patch</a> fly on your publicly accessible machines, do ensure you are careful during deployment.</p>
<p>Oh, and before you ask: if the LDAP directory server is unavailable, it will obviously not be able to return public keys. In that case, _sshd_ falls back to the other mechanisms you&#039;ve configured (i.e. password) and/or public-key authentication from <code>~/.ssh/authorized_keys</code>. This ensures you won&#039;t be locked out in case the directory server goes South.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/03/02/ssh-public-keys-from-ldap/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LDAP Distributed shell-Profile: ldp</title>
		<link>http://blog.fupps.com/2006/02/25/ldap-distributed-shell-profile-ldp/</link>
		<comments>http://blog.fupps.com/2006/02/25/ldap-distributed-shell-profile-ldp/#comments</comments>
		<pubDate>Sat, 25 Feb 2006 19:46:32 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[LDAP]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/?p=336</guid>
		<description><![CDATA[ldp (LDAP distributed profile) will read a user-specific shell profile (.profile) from an LDAP directory server upon login, allowing users (including multiple people operating as _root_) to always have the same settings irrespective of which machine they are working on. ldp also operates correctly when logging in via SSH via public key auth.
Used properly, any [...]]]></description>
			<content:encoded><![CDATA[<p>ldp (LDAP distributed profile) will read a user-specific shell profile (.profile) from an LDAP directory server upon login, allowing users (including multiple people operating as _root_) to always have the same settings irrespective of which machine they are working on. ldp also operates correctly when logging in via SSH via public key auth.</p>
<p>Used properly, any user logging on as _root_ to a machine, can have her customized <code>.profile</code> loaded upon login instead of having to &#034;share&#034; a <code>~root/.profile</code> or similar. That for me, is the end of having to put up with colleagues who prefer _emacs_ mode in a <a href="http://www.gnu.org/software/bash/">bash</a>. <img src='http://blog.fupps.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><img src="http://images.freshmeat.net/img/icon.gif" />I&#039;ve submitted an initial announcement and a release of <a href="http://blog.fupps.com/2006/02/23/distributed-profile/">my distributed .profile from LDAP idea</a> to <a href="http://freshmeat.net/projects/ldp/">freshmeat.net</a>. I&#039;ve put up quite an <a href="http://wiki.fupps.com/doku.php/ldap/ldp">extensive document about ldp</a> on my wiki (the home of _ldp_); do have a look &#038; comment on it, please.</p>
<p>There are still some things pending: decent _man_ pages, an import utility and perhaps profile storage in the user&#039;s real <code>$HOME</code> instead of in a spool directory. <del>Anothing thing pending is my first freshmeat submission: it is still in the queue&#8230;</del></p>
<p>In any case, even though the whole thing is rather simple, I&#039;m quite pleased with the result of _ldp_. I&#039;ve been testing it from a number of different machines, and my life has changed for the better! <img src='http://blog.fupps.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/02/25/ldap-distributed-shell-profile-ldp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Distributed .profile</title>
		<link>http://blog.fupps.com/2006/02/23/distributed-profile/</link>
		<comments>http://blog.fupps.com/2006/02/23/distributed-profile/#comments</comments>
		<pubDate>Thu, 23 Feb 2006 05:38:14 +0000</pubDate>
		<dc:creator>Jan-Piet Mens</dc:creator>
				<category><![CDATA[SSH]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.fupps.com/2006/02/23/distributed-profile/</guid>
		<description><![CDATA[As administrators we handle a lot of distinct Linux machines, often logging on simply as _root_ to restart a service, create a user or do other sundry maintenance tasks. Working in Germany with colleagues who prefer to use cursor keys in Emacs mode means that I always have to at the very least run loadkeys [...]]]></description>
			<content:encoded><![CDATA[<p>As administrators we handle a lot of distinct Linux machines, often logging on simply as _root_ to restart a service, create a user or do other sundry maintenance tasks. Working in Germany with colleagues who prefer to use cursor keys in Emacs mode means that I always have to at the very least run <code>loadkeys us; set -o vi</code> in the shell just after connecting to a remote machine over SSH(Secure Shell). The reason? The machine doesn&#039;t know it is me, JP, who is connecting. Obviously. The machine doesn&#039;t know, because it is always _root_ connecting. I could of course set up a number of <code>if</code>s in <code>/etc/profile</code> to find out from which client IP address I&#039;m connecting, but that method isn&#039;t foolproof and doesn&#039;t work at all when client addresses are allocated dynamically.</p>
<p>I&#039;m working on a solution which entails keeping a distributed profile which will be loaded depending on the _username_ of the person logging on. I&#039;ll be keeping the profile in an LDAP directory server, although any remote location would be fine. And how will the machine know it is me? By judiciously using an environment variable set up by the SSH server.</p>
<p>Oh, and before you ask: yes, of course I know all about NFS(Network File System). A number of machines we use may not use NFS, though, quite apart from the fact that it&#039;d be overkill for just that.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fupps.com/2006/02/23/distributed-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
