Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
If you're certain that the other computer has the ssh service up and running (ie on that computer you can do ssh localhost), and you can ping that computer, then it can be a routing or firewall problem.
ssh localhost
), and you can ping that computer, then it can be a routing or firewall problem.