LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-16-2005, 04:08 PM   #1
nonutopia
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
[DEBIAN SARGE] problems setting up sshd to use tcpwrapper


Im trying to setup the python script denyhosts but my sshd currently ignores the files host.deny and hosts.allow. So it seems I need to run it trough a tcpwrapper.

I changed the ssh startup script so it starts sshd like this:
Code:
start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec /usr/sbin/tcpd /usr/sbin/sshd -- $SSHD_OPTS
sshd starts up but now i cant login at all it keeps saying connection refused.
adding an ALL:ALL to hosts.allow doesnt help either.

Anyone that can tell me what is going wrong?
 
Old 08-23-2005, 08:04 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
If you use the wrapper you will need to control the service through xinetd..

If you are trying to reject connections to sshd from unknown sources, it's better to use iptables..
 
  


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
Problems setting up virtual hosts with debian sarge and apache2 dthacker Debian 1 11-23-2005 05:25 PM
Setting ps/2 mouse in Debian sarge bruno buys Linux - Hardware 3 06-08-2005 04:05 AM
Setting Date in debian sarge bruno buys Debian 3 02-01-2005 01:10 PM
Problems Setting up SSHD nistelrooy Red Hat 1 11-10-2004 10:09 PM
Setting up exim4 (or something else) on Debian Sarge lussumo Linux - Software 3 10-09-2004 08:37 PM

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

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