Zur Navigation springenZur Suche springen
Willkommen auf der Homepage von Niki Hammler
Mein "neues" Weblog

PuttyAgent now supports openssh/cygwin/msys

2014-05-11 00:23:53

For a long time, I extensively used the plugin "PuttyAgent" for KeePass as an SSH key agent. However, unfortunately the protocol (at least the transfer protocol) of PuTTYs implementation and openssh (cygwin, MSYS) are not compatible. So far I avoided openssh and used wrappers to plink.exe (e.g., for rsync or unison). But that becomes more and more a pain. And finally, with git and git-annex I gave up: I looked for putty agent to ssh-agent gateways and they indeed exist. However, another application residing in RAM makes it unhandy. So I decided to just add the support to PuttyAgent...


GPG: WinPT + KeePass = KeePT

2011-12-25 19:46:56

KeePT is my new plugin for KeePass which allows to use WinPT from KeePass. There is no need to start both KeePass and WinPT at the same time. KeePT allows to access all functions from WinPT from KeePT's tray menu. Furthermore, the plugin registers WinPT's hot keys and allows to pass the GPG passphrase to WinPT. But what was my intention? I can just use KeePass's hot key functionality to pass the GPG password. However, I hate to startup up dozens of application which all occupy an icon in the system tray. This is even more true when I do not use the applications regularly. This was already the reason for my PuttyAgent plugin: No need to start both KeePass and pageant.exe. The same is true for KeePT: The main and unspectacular purpose of this plugin is to start WinPT (and hence GPG) from within KeePass. The minor purpose is to pass the GPG password from KeePass to WinPT. This plugin requires WinPT. At first, I wanted to compile WinPT into a DLL, just as I did it for PuttyAgent. But after spending hours in trying to compile the old WinPT code I gave up and decided to control the pre-compiled binary. This has another advantage: The plugin occupies only 80kB (written purely in C++ with WinAPI) whereas the whole WinPT (occupying 1-2MB!) is only loaded when needed.


Device: /dev/sda, 1 Currently unreadable (pending) sectors

2011-05-02 15:07:10

I sometimes get these annoying messages from smartd. They only occur with Samsung HD103SIS SATA disks. According to my google research, these messages are not harmful and a Samsung speciality. One reason for me to avoid Samsung in future. The messages should disappear after a reboot. However, since the disks are built into a RAID1 on a 24x7 server I want to avoid rebooting the server. Instead I can get rid of these messages without a reboot when overwriting the whole disk with zeros. Please click here for details.


More extensions for KeePass

2011-05-02 14:50:25

During the last days I worked again on extensions for KeePass 1.0. The result is twofold: First, an extension for the plugin OnScreenKeyboard originally developed by Dominik Reichl with enhancements for tablet PC usage. Second, a new plugin PuttyAgent which implements the SSH key agent from the PuTTY suite within KeePass.

The OnScreenKeyboard was rewritten in a more object-orientated way. It is now possible to manually select two keyboards (or auto-detect) through the settings dialog. Furthermore, the keyboard automatically closes after input if it was opened before. And finally (for me the most important part) is a kind of tablet PC detection: It only opens when a stylus of a tablet PC is being used. Thanks to Josh Einstein for hints on how to do this.

The PuttyAgent is a new plugin which implements SSH agent functionality. It is based on the sources of PuTTY's pageant.exe. Since I have always KeePass and Pageant.exe running it would be convenient to combine both tools. This is what the plugin does: Just attach a *.ppk file to a KeePass entry and it will be served by KeePass.

Both plugins (DLL and source code) can be found at the homepage of KeePass: http://keepass.info/plugins.html


LockExtensions for KeePass

2010-07-26 22:24:23

KeePass is a powerful OpenSource password-safe. It has become one of my "must-have" programs. There are ports for various platforms (including mobile, like Windows Mobile).

I wrote a small plugin LockExtensions which adds three more ways of locking the workspace (currently open password file):

  1. Lock after a specific user-inactivity time (resolution in minutes)
  2. Lock on standby/hibernate
  3. Lock when pressing a global hotkey

Download (including source) can be found at: http://keepass.info/plugins.html#lockext


Reproducing Polynomials with B-Splines

2010-07-19 15:03:56

Family of B-splines up to N=4

A B-Spline of order is known to be able to reproduce any polynomial up to order :

In words, a proper linear combination of shifted versions of a B-Spline can reproduce any polynomial up to order . This is needed for different applications, for example, for the Sampling at Finite Rate of Innovation (FRI) framework. In this case any kernel reproducing polynomials (that is, satisfying the Strang-Fix conditions) can be used. However, among all possible kernels, the B-Splines have the smallest possible support.

An important question is how to obtain the coefficients for the reproduction-formula. In this small article, I describe one way.


AirFix: Fixing Sierra Wireless Watcher

2010-05-03 11:51:11


The Sierra Wireless Watcher Software is used for Sierra Wireless UMTS Modems to connect to the internet. Unfortunately this software has a bug with some cards (e.g. with my AirCard 850). Sierra did not want to fix the bug although I reported the bug in a detailed way. Another example of a bad company you should think twice before buying a product.

Without using the airplane mode the Watcher software works (more or less). But when the airplane mode is enabled and the Watcher software is started there is a strange behaviour: The software connects successfully but it does not escape the state of "connecting". This means that the "Disconnect"-Button keeps grayed out and there is no way to terminate the connection except killing Watcher. In this case also no records to the phone log and the transmitted data is written. Read on here for my fix



2009-11-18 14:03:00


Currently I am studying at the famous University of Tokyo (東京大学 or short 東大). My lab is the Hirose Lab. My research is an improvement for phase unwrapping. Phase unwrapping is used for example with SAR (Synthetic Aperture Radar) to generate digital elevation maps or in medicine. I greatly enjoy my stay in Tokyo. It is exciting to experience a completely different culture and it is a great challenge. Tokyo itself is just beyond comprehension. The city is so huge and heterogeneous and everyday you experience something new.

I have set up a site including an image gallery. The password is available on request.


Courier IMAP: inbox empty after upgrade to lenny

2009-08-20 20:36:13

After upgrading my mail server (mail.nobaq.net) from Debian etch to Debian lenny, all IMAP inboxes were empty (IMAP server: courier/SSL). Even the list for subscribed folders in Thunderbird was empty.

After a long time I found the solution: The new version of courier seems to require the Maildir directory to be owned by the specific user. Furthermore, the group must be set to the primary group of the user (in my case "users"). All other permissions seem to be ignored.


Pageant wildcard workaround

2009-07-27 00:49:18


Using a key agent for SSH simplifies work. With PuTTY, you use pageant.exe. But there is a problem: You need to load all keyfiles manually. And if all keys are secured with a password you have to type the passwords a few times. However, pageant has one feature: You can pass keyfiles as parameters. If all keys are secured with the same passphrase you have to enter it only once. If you have multiple keyfiles you would like to use:

pageant.exe *.ppk

But unfortunately this does not work. This issue is already included in the wishlist (http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/pageant-wildcard.html) but seems to be not yet implementet. In this article I show a small workaround


Special Thanks to