UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I started having problems with ssh yesterday. Whenever I try to ssh from my machine (Ubuntu 9.10 64 bit) to another (Fedora 12 64 bit) I get the following error message:
OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 192.168.1.166 [192.168.1.166] port 22.
debug1: Connection established.
debug1: identity file /home/mingw/.ssh/identity type -1
debug1: identity file /home/mingw/.ssh/id_rsa type -1
debug1: identity file /home/mingw/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host
After searching through google-linux, I finally figured out that it was the /etc/hosts.deny file on the machine I am trying to ssh into. I removed my IP from that machine and I was able to ssh in without a problem. However; I discovered that if I try to ssh into that machine a second time, my IP has been added to hosts.deny file again. I checked the hosts.allow and mine is the only IP address listed.
Anyone have any idea why my IP would be added to the hosts.deny file after I already connected to the machine?
It could be using some blacklisting program that examines the logs and based on failed attempts blacklists a particular ip. Could be the behavior of a specific root kit or script run by one. My first guess would be to look at any security software on the system that is configured to use the hosts.allow and .deny.
I will check that, but I don't think that is what is happening. I was able to ssh into that machine last week. Nobody has been on that machine, other than me there is nobody else here that knows anything about linux. The guy that was on that machine is gone, working somewhere else. We have it running because there are several daily backups and processes that are run from that machine. I can easily walk over to it, but I want to get ssh working in case I need to get to it from home.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.