Results 1 to 5 of 5
Hello,
I have got server running gentoo and when I try to connect to SSH (port 22) using putty, I get error 'Connection refused' (ping works without problems). I tried ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-16-2008 #1Just Joined!
- Join Date
- Jul 2008
- Location
- Lithuania
- Posts
- 4
Connection Refused (gentoo)
Hello,
I have got server running gentoo and when I try to connect to SSH (port 22) using putty, I get error 'Connection refused' (ping works without problems). I tried to stop iptables
but it doesn't help.Code:/etc/init.d/iptables stop
Any solutions?
Thanks a lot for answers, because I really need to fix that problem tomorrow
- 07-16-2008 #2Just Joined!
- Join Date
- Jun 2008
- Posts
- 4
- 07-16-2008 #3
First check to see if sshd is listening on port 22:
... if not then start the daemonCode:# netstat -plt
If sshd is listening on port 22 ... then you will need to check the /etc/ssh/sshd_config file for a hint.Code:# /etc/init.d/sshd start
Men occasionally stumble over the truth,
but most of them pick themselves up
and hurry off as if nothing had happened.
Winston Churchill
... then the Unix-Gods created "man" ...
- 07-17-2008 #4Just Joined!
- Join Date
- Jul 2008
- Location
- Lithuania
- Posts
- 4
That problem isn't only with SSH. Server refuses all connections from outside - HTTP, SSH and so on. I created /etc/hosts.allow and wrote "ALL:ALL, but it doesn't work. Also I droped all filters. And it doesn't work too
- 07-18-2008 #5Just Joined!
- Join Date
- Jul 2008
- Location
- Sweden, Earth, Milky way
- Posts
- 10
Make sure you don't have ALL:ALL in /etc/hosts.deny. That would overrule the hosts.allow (I found out the hard way :P )


Reply With Quote

