Fixed some errors in SSH connect.