create method for ssh connection