Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 19 Jun 2018, 05:26
All times are UTC - 4
 Forum index » Off-Topic Area » Security
TCP Wrappers & OpenSSH
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
s243a

Joined: 02 Sep 2014
Posts: 1067

PostPosted: Mon 30 Apr 2018, 02:02    Post subject:  TCP Wrappers & OpenSSH  

I'm just putting down some config info about OpenSSH here before I forget.

When I previously installed OpenSSH I don't remember having to do any configuration with "TCP Wrappers". However, this time I got the error message in:
/var/log/auth.log
Code:

debug1: Connection refused by tcp wrapper


Note to get this debug information one must add to
/etc/ssh/sshd_config
Code:

LogLevel DEBUG3


and to make sure that openssh can find these settings set in
/etc/default/ssh
Code:

SSHD_OPTS='-f /etc/ssh/sshd_config -E /var/log/auth.log'


then start ssh by navigating to "/etc/init.d"
and typing either
Code:

./ssh 'start'

or if you want to debug startup
Code:

sh -xv ssh 'start'


Now to fix the above error edit
/etc/hosts.allow
Code:

ALL: LOCAL
ALL: 192.168.1.X #Edit this to the ip address of the ssh client


Notice the blank line at the end of the file. Without this blank line the last line will return an error and it won't work.

You also might need to start both your Internet connection and your ssh server for this change to take effect.

Here is some further reading on TCP wrappers:
https://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-tcpwrappers.html

Anyway, that is enough for tonight more to follow.

Edit: P.S. one also needs to do this:

Code:

/usr/bin/ssh-keygen -A

https://bbs.archlinux.org/viewtopic.php?id=165382
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Security
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0410s ][ Queries: 13 (0.0043s) ][ GZIP on ]