New ssh commands module and commands mock function

I have reviewed the logs and if $secret=1 the secret key is removed from the logs, but we can check this again to be sure..