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.

This question already has an answer here:

I have ssh configured for my system. It was working perfectly but now I'm able to ssh or sc to other systems but other systems are not able to ssh or scp to my system it shows connection timed out error. Please Help.

share|improve this question

marked as duplicate by Radu Rădeanu, Eliah Kagan, Warren Hill, Seth, AgentCool Jul 6 '13 at 6:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
What message do you get when you run ssh –  Radu Rădeanu Jul 3 '13 at 11:57
    
I am able to ssh when I do so it asks me for password and Im able to login but others are not it gives them error connection timed out. –  Tarun Jul 3 '13 at 11:58
    
Firewall? What's the output of sudo iptables -L -nv? –  Eric Carvalho Jul 3 '13 at 12:03
    
I looked into iptables using iptables -L I have updated the output above I think its got to do something with iptables. –  Tarun Jul 3 '13 at 12:09
    
@Eric: Updated the output for iptables -L -nv –  Tarun Jul 3 '13 at 12:15

1 Answer 1

up vote 2 down vote accepted

UFW is blocking incoming connections to port 22. Run this to allow it:

sudo ufw allow 22/tcp
share|improve this answer
    
Thanks alot Eric it worked finally :) –  Tarun Jul 3 '13 at 12:31

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