init: rework ssh regeneration and one less cat call

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>