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: Select all
debug1: Connection refused by tcp wrapper
/etc/ssh/sshd_config
Code: Select all
LogLevel DEBUG3
/etc/default/ssh
Code: Select all
SSHD_OPTS='-f /etc/ssh/sshd_config -E /var/log/auth.log'
and typing either
Code: Select all
./ssh 'start'
Code: Select all
sh -xv ssh 'start'
/etc/hosts.allow
Code: Select all
ALL: LOCAL
ALL: 192.168.1.X #Edit this to the ip address of the ssh client
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/Depl ... ppers.html
Anyway, that is enough for tonight more to follow.
Edit: P.S. one also needs to do this:
Code: Select all
/usr/bin/ssh-keygen -A