SSH connect bug fix