I'm unconvinced about putting these methods on the interface when they're not used by anything except the internals of the ssh-driver and the freemarker template. But no strong feelings.