added condition check for ssh chmod.
added recommendations to script output.