Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 05-29-2010, 07:26 PM   #1
Registered: Jun 2009
Posts: 131

Rep: Reputation: 18
Hosts.Allow vs. SSH!


I have set up SSH and redirected the ssh server to listen on another port other than 22 for a bit of added security.

Now in hosts.deny I have:


In hosts.allow I have:

SSH : ip_address_of_client

I can no longer connect. I get the message: ssh_exchange_identification: Connection closed by remote host.\

When I change hosts.allow to read:

ALL : ip_address_of_client

I can successfully connect the server.

However, I only want to allow SSH access in hosts.allow. What is the correct syntax?????????

I have tried and failed with each one of these:

SSH : ip_address:port_number
SSH2 : ipaddress
sshfwd-portnumber : ip_address_of_client
Old 05-29-2010, 07:43 PM   #2
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
It's SSHD, not SSH
Old 05-29-2010, 07:52 PM   #3
Registered: Jun 2009
Posts: 131

Original Poster
Rep: Reputation: 18
Could it be that simple?

Let me try it.....

Hey! It works now!!!! Rock on dude!!


Originally Posted by AlucardZero View Post
It's SSHD, not SSH


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 comand on multiple hosts mafkees80 Programming 10 04-15-2010 01:21 AM
SSH between 2 hosts kmeyers Linux - Software 3 02-18-2009 07:27 PM
ssh troubleshooting hosts dyndns infiniphunk Linux - Security 4 03-25-2007 02:54 PM
cannot ssh from some hosts greengear Linux - Networking 9 01-29-2006 02:48 AM
SSH hosts.deny file WoodyH Linux - Security 1 10-11-2003 07:44 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:59 PM.

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