Used error code enum instead of magic numbers
Added ability to exec wshd after sshing