Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I get this error when ever I try to connect my desktop with another desktop using SSH, but I'm able to ping the other desktop successfully.

ssh: connect to host port 22: Connection refused

I can connect to remote server using SSH but I'm not able to connect within the local network. Please help me in this regards,

Thanks in advance.

share|improve this question

closed as not a real question by Michael Hampton, Khaled, Tom O'Connor, dunxd, Ladadadada Feb 13 '13 at 14:16

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The Connection Refused message generally means there is nothing listening on the relevant port. Make sure that sshd is running.

share|improve this answer

It seems your SSH daemon is not running..

share|improve this answer
When I do ps -ef |grep ssh I get the pid no with it – Rudra Feb 13 '13 at 7:36
service sshd status run this command and let us know what outout you are getting. – Abhishek Anand Amralkar Feb 13 '13 at 7:48
can run below two command and see if your ssh works or not , If you are on RPM based then 1. service iptables stop 2. set enforce 0 or if you are on debian based try to stop apparmor service apparmor stop. – Abhishek Anand Amralkar Feb 13 '13 at 8:00

Either not running, or blocked by some firewall or not listening on that interface/IP...

share|improve this answer
Firewall blocking does not generate connection refused error. – Khaled Feb 13 '13 at 8:25
@Khaled it does if you REJECT rather than DROP. – Ladadadada Feb 13 '13 at 14:14

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