Add remove ssh publickey comment code and shellscript refactoring.

･Refactoring a shellscript to check the SSH public key.
･Commands spec is changed for new command test.
･Before check remove ssh publickey comment.