ssh into ubuntu

Associate
Joined
28 Dec 2002
Posts
2,400
Location
Northern Ireland
hi guys i keep getting the same error message when trying to ssh into my ubuntu box

it keeps saying port 22 connection refused??

any ideas
 
hi guys i keep getting the same error message when trying to ssh into my ubuntu box

it keeps saying port 22 connection refused??

any ideas

sshd definitely running?

Check the output of ps -e | grep sshd (on the server, not client)

Secondly, make sure TCP Wrappers isn't blocking connections.

What's the contents of /etc/hosts.allow & /etc/hosts.deny? You will need to make sure ssh is allowed in them. The following should work in the allow file:
sshd : ALL : allow
 
Last edited:
First off, can you ping the server (desktop, whatever - if it's serving, it's a server), then see if sshd is running. Second, see if iptables is blocking it. Third, see if tcp wrappers is blocking it.

There's a bunch of other things, but they're the obvious ones.
 
Back
Top Bottom