Restore generation of ssh keypair

This was deleted in a recent commit
Ia373cd2007750a2ce5ad0b1ee18cf3c44591d9dc

An earlier version of the patch altered this code then later version of
the patch removed it instead of restoring it back to the original.

Change-Id: I3fb5d7a4135d0cb755a8ba5bd5837880d4fa2005
Merge "Restore generation of ssh keypair"