RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

ssh_exchange_identification: Connection closed by remote host

If you have tried everything to stop this error message appearing on your terminal try to look into /etc/hosts.deny file on your sshd destination server to make sure that your external IP address is not black listed there to be denied ssh access.You can do this only by using a ssh client on different server which has an external IP address different from your own. So ssh somewhere else and from there to your desired destination ( this is temporary workaround for this problem ). First get your external IP address. If you have a access to a browser navigate to ipchicken.com or use a following bash script:

#!/bin/bash

# NOTE: this script only works if your external IP address
# is listed on 35th line of ipchicken's output file.

wget -q http://ipchicken.com
echo My external IP address is: $( cat index.html | sed -n '35p' | awk '{ print $1 }')
rm index.html

Make the get-external-ip.sh bash script executable and execute:

chmod +x get-external-ip.sh
./get-external-ip.sh
My external IP address is: 113.194.30.111

Login to a destination server and execute a following command:

$ cat /etc/hosts.deny | grep 113.194.30.111

The output will look same or similar to the one below:

# DenyHosts: Fri Sep 24 14:58:17 2010 | sshd: 113.194.30.111
sshd: 113.194.30.111

Remove both lines form /etc/hosts.deny file and you are ready to go. If you do not have a write access to this file ask someone with write access to do it for you. Your IP address can be listed in /etc/hosts.deny file due to the paranoid settings of TCP_WRAPPERS ( multiple authentication denied etc. ) or it can be added deliberately by a system admin.

Share this linux post:

Submit ssh_exchange_identification: Connection closed by remote host in Delicious Submit ssh_exchange_identification: Connection closed by remote host in Digg Submit ssh_exchange_identification: Connection closed by remote host in FaceBook Submit ssh_exchange_identification: Connection closed by remote host in Google Bookmarks Submit ssh_exchange_identification: Connection closed by remote host in Stumbleupon Submit ssh_exchange_identification: Connection closed by remote host in Technorati Submit ssh_exchange_identification: Connection closed by remote host in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download