SSHD refused connection

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Locked
bergie
Posts: 2
Joined: 2011/08/11 16:06:50

SSHD refused connection

Post by bergie » 2011/08/11 16:40:05

Hi Guys,

i am fairly new to the linux world, and have self taught my self as much as i can, however i have a Centos5 server (not setup by me) i am trying to connect to. if i use PuTTY from my machine using SSH it works fine, and any user that connects from my machine or (i Believe) a machine in a specified subnet works great. but any machine out side that subnet gets "Fatal Error: server unexpectedly closed network connection" which is now needed. The origional admin is no longer available so i do not know how he setup ssh. i was hoping someone could point me in the right direction, for some reason i am having a hard time grasping SSH. Thanks in advance for any help.


/var/log/secure

Aug 11 10:15:37 refine sshd[7034]: refused connect from ::ffff:10.10.45.78 (::ffff:10.10.45.78)


iptables are not setup

sudo ./iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

bergie
Posts: 2
Joined: 2011/08/11 16:06:50

Re: SSHD refused connection

Post by bergie » 2011/08/11 16:56:45

lol, never mind,

Turns out there is a file called hosts.allow in the /etc directory. once i added the subnet to that file it worked perfectly.


Thanks anyways
hope this helps someone else.

CYB0RG
Posts: 3
Joined: 2015/03/05 22:08:30

Re: SSHD refused connection

Post by CYB0RG » 2015/03/05 22:10:30

thay you bergie, that was also part of my problem. instead of connection refused, now im dealing with public key failures..

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: SSHD refused connection

Post by gerald_clark » 2015/03/05 23:50:10

Don't hijack a 4 year old thread with a different problem.

Locked

Return to “CentOS 5 - Server Support”