LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-01-2009, 10:24 AM   #1
gdonwallace
LQ Newbie
 
Registered: Dec 2009
Location: Oklahoma City, OK
Distribution: Ubuntu
Posts: 11

Rep: Reputation: 0
ssh connection


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?

thanks in advance for any help.
 
Old 12-01-2009, 02:14 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
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.
 
Old 12-01-2009, 02:57 PM   #3
gdonwallace
LQ Newbie
 
Registered: Dec 2009
Location: Oklahoma City, OK
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
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.

thanks for the advice.
 
Old 12-01-2009, 05:28 PM   #4
gdonwallace
LQ Newbie
 
Registered: Dec 2009
Location: Oklahoma City, OK
Distribution: Ubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Moving this post to the networking forum, think it is more along those lines. Will mark this thread as solved.
 
  


Reply

Tags
ssh, ubuntu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
LXer: ssh-xfer: Quickly grabbing files over an existing SSH connection LXer Syndicated Linux News 0 08-08-2008 03:11 PM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
Connection to ssh... wtfn00b Linux - Newbie 2 02-01-2006 10:09 AM
ssh connection jeasimkev Linux - Newbie 2 12-10-2003 09:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration