I have the following /etc/rc.d/rc.inet1.conf:
# Config information for eth0:
IPADDR[0]="xx.yy.zz.95"
NETMASK[0]="xx.yy.zz.192"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]="192.168.0.3"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Default gateway IP address:
GATEWAY="xx.yy.zz.65"
I changed the gateway to 192.168.0.1 (the address of the firewall/router) in order to get port forwarding to work to this computer. That is now working, but I can no longer access the eth0 IP properly from outside the LAN. If I ssh to myuser.mydomain.com (which resolves to xx.yy.zz.95) I get not connection and the /var/log/messages file gets an entry, "Apr 2 15:38:50 webserver sshd[10699]: Did not receive identification string from aa.bb.cc.98"
I can, however, telnet to this port and get a connection:
telnet mydomain.com 22
telnet xx.yy.zz.95 22
both of these give me a telnet connection.
Likewise I can telnet to port 80, but I can't actually open a web page via my browser, though I don't see an error entry in any webpage.
Does anyone have an idea about what I can do?
To do this edit your sshd_config file:
$ sudo nano /etc/ssh/sshd_config
Change
LogLevel INFO
To
LogLevel DEBUG
Higher levels include DEBUG2 and DEBUG3 if needed.
On the client side to get more verbosity, try this:
$ ssh -vvv user@host
http://scottlinux.com/2012/01/04/troubleshoot-ssh-authentication-failure/