ssh: convert into a module

Change-Id: Id080b3854138d3e3d81403f3b8e107f4c2bb777f