Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a vps running Ubuntu 12.04 LTS and I have installed openSSH but I can't connect to it with putty. I get error saying Network error:Connection timed out. How to fix this?

share|improve this question

1 Answer 1

Telnet to port 22 of your VPS. If sshd is accepting connections, you should see something similar to the following:

$ telnet your.vps.foo 22
Trying 203.0.113.25...
Connected to your.vps.foo.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.0p1

Protocol mismatch.
Connection closed by foreign host.

If you aren't getting that response from the vps, you may have a firewall blocking the port, or a configuration problem in /etc/ssh/sshd_config.

  • man sshd_config explains how that file file works
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.