Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2001 03:13:21 -0500
From:      "qxu" <qxu2@Bayou.UH.EDU>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   still about SSh configuration
Message-ID:  <001601c13774$f540c040$3fcd0781@ee.uh.edu>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Seems nobody answer my q. 
I continue work on this but still no progress. Hope someone will help.

I have install freebsd4.1.1 on two boxes. The ssh is automatically installed. The network is fine. I can ping each other.
Also I put sshd_enable="YES" in the rc.conf. But I can not even ssh localhost. 

There are also two old  freebsd boxes(also 4.1.1) left by other people, I can ssh one from the new boxes. 
But can not ssh the new boxes from the old boxes. 

sshd_config and ssh_config are all the same in the 4 boxes.
I can not find where the configuration is different from the old boxes.


old boxes ---------squid1.my.com , squid2.my.com
new boxes -------squid3.my.com , squid4.my.com

use ps aux | grep sshd, I can see sshd is there.
Here is the output of ssh -v from old and new boxes


On the new boxes

ssh -v localhost 

ssh -v squid1.my.com 

SSH Version OpenSSH-2.1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /etc/ssh/ssh_config
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to localhost.my.domain [127.0.0.1] port 22.
debug: Allocated local port 1006.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH-2.1
debug: Local version string SSH-1.5-OpenSSH-2.1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Forcing accepting of host key for loopback/localhost.
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Trying Kerberos V5 authentication.

On the old boxes

ssh -v squid1.my.com 
SSH Version OpenSSH-2.1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /etc/ssh/ssh_config
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to squid1.my.com [10.12.0.1] port 22.
debug: Allocated local port 1023.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH-2.1
debug: Local version string SSH-1.5-OpenSSH-2.1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'squid1.my.com' is known and matches the RSA host key.
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Trying RSA authentication with key 'root@squid2.my.com'
debug: Server refused our key.
debug: Doing password authentication.

but when I enter the pass here it is frozen there and then because of timeout the connection is down.


Who can tell me the reason? It is so weird.

Thank you.

Xu,Qiang




[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Seems nobody answer my q. </FONT></DIV>
<DIV>I continue work on this but still no progress. Hope someone will 
help.</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have install freebsd4.1.1 on two boxes. The ssh 
is automatically installed. </FONT><FONT face=Arial size=2>The network is fine. 
I can ping each other.</FONT></DIV>
<DIV><FONT face=Arial size=2>Also I put sshd_enable="YES" in the rc.conf. But 
</FONT><FONT face=Arial size=2><FONT face=Arial size=2>I can not even ssh 
localhost. </FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>There are also two old&nbsp; freebsd boxes(also 
4.1.1) left by other people, I can ssh one from the new boxes. </FONT></DIV>
<DIV><FONT face=Arial size=2>But can not ssh the new boxes from the old boxes. 
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>sshd_config and ssh_config are all the same in the 4 boxes.</DIV>
<DIV><FONT face=Arial size=2>I can not find where the configuration is different 
from the old boxes.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>old boxes ---------squid1.my.com , squid2.my.com</DIV>
<DIV>new boxes -------squid3.my.com , squid4.my.com</DIV>
<DIV>&nbsp;</DIV>
<DIV>use ps aux | grep sshd, I can see sshd is there.<BR>Here is the output of 
ssh -v from old and new boxes<BR><BR></DIV>
<DIV><FONT size=4><STRONG>On the new boxes</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>ssh -v localhost </DIV>
<DIV>&nbsp;</DIV>
<DIV>ssh -v squid1.my.com </DIV>
<DIV><BR>SSH Version OpenSSH-2.1, protocol versions 1.5/2.0.<BR>Compiled with 
SSL (0x0090581f).<BR>debug: Reading configuration data 
/etc/ssh/ssh_config<BR>debug: ssh_connect: getuid 0 geteuid 0 anon 0<BR>debug: 
Connecting to localhost.my.domain [127.0.0.1] port 22.<BR>debug: Allocated local 
port 1006.<BR>debug: Connection established.<BR>debug: Remote protocol version 
1.99, remote software version OpenSSH-2.1<BR>debug: Local version string 
SSH-1.5-OpenSSH-2.1<BR>debug: Waiting for server public key.<BR>debug: Received 
server public key (768 bits) and host key (1024 bits).<BR>debug: Forcing 
accepting of host key for loopback/localhost.<BR>debug: Encryption type: 
3des<BR>debug: Sent encrypted session key.<BR>debug: Installing crc compensation 
attack detector.<BR>debug: Received encrypted confirmation.<BR>debug: Trying 
Kerberos V5 authentication.<BR><BR><FONT size=4><STRONG>On the 
old&nbsp;boxes</STRONG></FONT></DIV>
<DIV>
<DIV>&nbsp;</DIV>
<DIV>ssh -v squid1.my.com </DIV></DIV>
<DIV>SSH Version OpenSSH-2.1, protocol versions 1.5/2.0.<BR>Compiled with SSL 
(0x0090581f).<BR>debug: Reading configuration data /etc/ssh/ssh_config<BR>debug: 
ssh_connect: getuid 0 geteuid 0 anon 0<BR>debug: Connecting to squid1.my.com 
[10.12.0.1] port 22.<BR>debug: Allocated local port 1023.<BR>debug: Connection 
established.<BR>debug: Remote protocol version 1.99, remote software version 
OpenSSH-2.1<BR>debug: Local version string SSH-1.5-OpenSSH-2.1<BR>debug: Waiting 
for server public key.<BR>debug: Received server public key (768 bits) and host 
key (1024 bits).<BR>debug: Host 'squid1.my.com' is known and matches the RSA 
host key.<BR>debug: Encryption type: 3des<BR>debug: Sent encrypted session 
key.<BR>debug: Installing crc compensation attack detector.<BR>debug: Received 
encrypted confirmation.<BR>debug: Trying RSA authentication with key <A 
href="mailto:'root@squid2.my.com'">'root@squid2.my.com'</A><BR>debug: Server 
refused our key.<BR>debug: Doing password authentication.<BR></DIV>
<DIV>but when I enter the pass here it is frozen there and then because of 
timeout the connection is down.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Who can tell me the reason? It is so weird.</DIV>
<DIV><BR>Thank you.<BR><BR>Xu,Qiang<BR><BR></DIV>
<DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001601c13774$f540c040$3fcd0781>