LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-11-2009, 08:06 AM   #1
mythicsentinel
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
ssh_exchange_identification: Connection closed by remote host... portsentry


I recently installed portsentry and i ran an nmap scan against the server. I logged out, but i can't seem to log back in from the machine i ran the scan from.
I get the following when i try:
ssh_exchange_identification: Connection closed by remote host.
Pls help
 
Old 11-11-2009, 08:17 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mythicsentinel View Post
I recently installed portsentry and i ran an nmap scan against the server. I logged out, but i can't seem to log back in from the machine i ran the scan from.
I get the following when i try:
ssh_exchange_identification: Connection closed by remote host.
Pls help
portsentry is possibly blocking you out. you may have to try from a remote server and remove the blocked ip from /etc/hosts.deny or iptables or wait for the block to timeout if this is how you have configured it

Last edited by centosboy; 11-11-2009 at 08:22 AM.
 
Old 11-11-2009, 09:38 AM   #3
mythicsentinel
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by centosboy View Post
portsentry is possibly blocking you out. you may have to try from a remote server and remove the blocked ip from /etc/hosts.deny or iptables or wait for the block to timeout if this is how you have configured it
The IP entry in /etc/hosts/deny has been removed but i still can't log in, any pointers as to how i remove the entry from iptables?
 
Old 11-11-2009, 09:41 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mythicsentinel View Post
The IP entry in /etc/hosts/deny has been removed but i still can't log in, any pointers as to how i remove the entry from iptables?
well, first check it is there...!
it only adds to the running config anyway, so if it is there, restarting iptables should do it.

check first

Code:
iptables -L -n -v | grep <ipaddress>
 
  


Reply



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_exchange_identification: Connection closed by remote host marafa Linux - Server 8 09-30-2008 05:06 AM
ssh_exchange_identification: Connection closed by remote host sailu_mvn Linux - Networking 5 07-09-2008 09:47 AM
ssh_exchange_identification: Connection closed by remote host jgray1978 *BSD 1 12-27-2007 10:22 PM
ssh_exchange_identification: Connection closed by remote host t0bias Linux - Software 0 09-27-2007 10:50 AM
ssh_exchange_identification: Connection closed by remote host liguorir Linux - Software 3 09-18-2003 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:45 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