Fixed if then ssh