tcp check method for ssh