Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh client gets to server, but doesn't connect...?

Reply
Thread Tools Display Modes

ssh client gets to server, but doesn't connect...?

 
 
/usr/ceo
Guest
Posts: n/a

 
      10-05-2006, 05:00 AM
Been running SuSE 8.0 (kernel 2.2 I think?!) on a Pentium II 400mhz for
YEARS and it finally died. I used to port forward from my firewall
from an obscure port (we'll say 99) to the SSH port, port 22, and it
worked great. But after my SuSE 8.0 machine died, I decided it was
time to "modernize" so I installed SuSE 10.1 64-bit on a brand new
machine.

Now, I can't connect to the sshd from the outside any more. I'm using
essentially the same sshd_config file, and using tcpdump w/o
promiscuious mode, I can see the SSH traffic hitting the eth0
interface. I can also see the port forwarding through the firewall
(from 99 -> 22 and then of course tcpdump is watching port 22), and I
can see the traffic all the way through. Nothing shows up in syslog
however either.

But on the machine, it seems sshd itself isn't seeing the traffic.
NetFilter is NOT on, there is nothing blocking the traffic at the
machine level, sshd just seems not to answer? I tried setting the
ListenAddress, as I have two NICs in this machine, whereas my 8.0
machine only had one (actually, I think even it had two). For the life
of me I can't figure it out. Nothing in the sshd_config file
(attached) seems to stare out at me. Was just wondering if anyone had
any ideas.

I had a similar issue at work where I installed SuSE 10.0, and invited
a colleage to ssh into the box and he couldn't, but on the local LAN, I
could. Same here as well, BTW. On the local LAN (192.168.0.0/24), I
can SSH into the new box just fine. It's just when the connection
comes from a port forward, it doesn't work. (And I never changed the
firewall really from when my 8.0 box was working. I configered my new
10.1 box the same and expected it to work.)

My sshd_config file is attached if anyone has any ideas. Pretend I am
user 'foo' of course (see last lines in sshd_config).

GOT to get this working and any help is appreciated greatly...

SSHD Version: OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005

/usr/ceo

--- sshd_config:

Port 22
#Protocol 2,1
ListenAddress 192.168.0.2
ListenAddress 192.168.0.4
GatewayPorts yes

# HostKey for protocol version 1
HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO
#obsoletes QuietMode and FascistLogging

# Authentication:

LoginGraceTime 600
PermitRootLogin yes
StrictModes no

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys

# rhosts authentication should not be used
#RhostsAuthentication no
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in
/etc/ssh/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for
RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
PermitEmptyPasswords no

# Uncomment to disable s/key passwords
ChallengeResponseAuthentication no

# Uncomment to enable PAM keyboard-interactive authentication
# Warning: enabling this may bypass the setting of
'PasswordAuthentication'
#PAMAuthenticationViaKbdInt yes

# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no

# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd yes
#PrintLastLog no
KeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net
#ReverseMappingCheck yes

Subsystem sftp /usr/lib/ssh/sftp-server
AllowUsers foo bar

 
Reply With Quote
 
 
 
 
Allen McIntosh
Guest
Posts: n/a

 
      10-05-2006, 12:21 PM
/usr/ceo wrote:
> ... Now, I can't connect to the sshd from the outside any more. I'm using
> essentially the same sshd_config file, and using tcpdump w/o
> promiscuious mode, I can see the SSH traffic hitting the eth0
> interface.


> --- sshd_config:
>
> Port 22
> #Protocol 2,1
> ListenAddress 192.168.0.2
> ListenAddress 192.168.0.4


I hope your machine's IP address is one of these. Maybe you should turn
this off until you get it working?
 
Reply With Quote
 
/usr/ceo
Guest
Posts: n/a

 
      10-05-2006, 02:25 PM

Allen McIntosh wrote:
> /usr/ceo wrote:
> > ... Now, I can't connect to the sshd from the outside any more. I'm using
> > essentially the same sshd_config file, and using tcpdump w/o
> > promiscuious mode, I can see the SSH traffic hitting the eth0
> > interface.

>
> > --- sshd_config:
> >
> > Port 22
> > #Protocol 2,1
> > ListenAddress 192.168.0.2
> > ListenAddress 192.168.0.4

>
> I hope your machine's IP address is one of these. Maybe you should turn
> this off until you get it working?


Yeah, those are the IPs of the two NIC cards I have and LIstenAddress
lines WERE turned off initially, and I still got no answer from the
daemon to the client. So I tried enabling those as the latest "try" in
getting this to work. Either way, ListenAddress lines on or off, it
still doesn't work.

/usr/ceo

 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      10-05-2006, 02:50 PM
>>> ListenAddress 192.168.0.2
>>> ListenAddress 192.168.0.4

> Yeah, those are the IPs of the two NIC cards I have and LIstenAddress

That probably means one of the NIC's isn't doing anything, but that's
another story.

> lines WERE turned off initially, and I still got no answer from the
> daemon to the client. So I tried enabling those as the latest "try" in
> getting this to work. Either way, ListenAddress lines on or off, it
> still doesn't work.

Do you know that the SYN is getting to your machine? If so, try
stopping sshd and running it manually with -d (check that's the right
option) to see what it's doing.
 
Reply With Quote
 
/usr/ceo
Guest
Posts: n/a

 
      10-06-2006, 09:46 PM
Allen McIntosh wrote:
> >>> ListenAddress 192.168.0.2
> >>> ListenAddress 192.168.0.4

> > Yeah, those are the IPs of the two NIC cards I have and LIstenAddress

> That probably means one of the NIC's isn't doing anything, but that's
> another story.
>
> > lines WERE turned off initially, and I still got no answer from the
> > daemon to the client. So I tried enabling those as the latest "try" in
> > getting this to work. Either way, ListenAddress lines on or off, it
> > still doesn't work.

> Do you know that the SYN is getting to your machine? If so, try
> stopping sshd and running it manually with -d (check that's the right
> option) to see what it's doing.


Well, I had in mind to try the other card -- swap the IPs and try the
other card (which was easier than re-writing rules on my firewall),
and... it worked. So it was the card some how. A builtin ethernet
card on the motherboard, so -- I'm not happy about that. Now, the
question is an issue of hardware. Why wouldn't that NIC allow the ssh
to connect? (Rhetorical)

But anyway, I have a working ssh daemon and port forwarding now, which
was the most important thing. I'll work on the hardware issue with the
vendor at some other time. I'm not sure I'm happy with this
motherboard, to be honest with you, but that's outside the scope of ths
forum, and this case of the missing ssh daemon is now solved.

Thanks all!
/usr/ceo

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Client cannot connect to VPN server - others can Thomas D. Windows Networking 2 01-27-2007 10:47 PM
Connect client to server Rajani Windows Networking 4 01-09-2006 09:55 PM
smb client not being able to connect to 2003 server Pravind Kumar Jeeanah Linux Networking 2 10-22-2004 06:20 AM
Can't connect to 2k3 server from mac osx smb client Ben Windows Networking 2 04-13-2004 11:48 PM
98se client cannot connect to nt 4 server Michael Streijl Windows Networking 0 10-21-2003 10:16 AM



1 2 3 4 5 6 7 8 9 10 11