Porting ssh key functionality to Windows and OSX.