ssh key fns converted to use records