Report error information when ssh fails

Fix #10911