openSshPublicKey hangs in a loop