Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have made an update to CentOS5.7 and since then I can't access by SSH to the machine. I have disable the Firewall and I have the "sshd" service active.

I got the following when I do this from the local machine(localhost):

$ ssh andre@
ssh: connect to host port 22: Connection refused

$ ssh andre@
ssh: Temporary failure in name resolution

Can someone give me a clue on how to solve this problem?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

check, if the machine really runs sshd on port 22:

# netstat -4nl | grep ":22"

and if the machine really has the ip

# ifconfig

and if the machine can be pinged from where you want to access it:

# ping

your 2nd command is faulty because it means `connect to the machine with the name '' (and since your dns-resolver is not able to map that name to a valid ip you got 'temporary failure in name resolution'). the flag to set the port is '-p'.

share|improve this answer
Thanks for your reply. The ssh service was down... Thanks again – André Oct 5 '11 at 11:17

Your Answer


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.