Added some better to enable ssh commands run smoother
better error reporting

Signed-off-by: izhaar <izhaar@pdc.kth.se>