Solved

Slow connections

Posted on 2002-07-22
1
283 Views
Last Modified: 2010-04-21
Hello!

I have FreeBSD 4.5 box with mail service (sendmail) and shell just for me (ssh). System performance: ~90% idle.

There are two subnets - in first one I have may workstation, but in second one lies this FBSD box. There are quiet good connections between those two subnets (two routers between). Ping statistic:
round-trip min/avg/max = 1.903/2.261/2.732 ms

When I making connections from same subnet where FBSD lives - everythig works well - fast connections and fast work. But when I making connection from other subnet - where are my workstation - process of connection takes too long (whatever - mail or ssh aprox. 30sec - 60sec to connect). But when connection finisshed (connected) everything works fast.

Although, I make connection with ssh verbosely - there is output:
SSH Version OpenSSH_2.3.0p1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090600f).
debug: Reading configuration data /path/to/ssh_config
debug: Seeding random number generator
debug: ssh_connect: getuid 0 geteuid 0 anon 0
debug: Connecting to host.net.net [xxx.xxx.xxx.xxx] port 22.
debug: Allocated local port 1022.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH_2.9 FreeBSD localisations 20011202
debug: no match: OpenSSH_2.9 FreeBSD localisations 20011202
debug: Local version string SSH-1.5-OpenSSH_2.3.0p1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Host 'host.net.net' is known and matches the RSA host key.
Warning: the RSA host key for 'host.net.net' differs from the key for the IP address 'xxx.xxx.xxx.xxx'
debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Doing password authentication.
user@host.net.net's password:
debug: Requesting pty.
debug: Requesting shell.
debug: Entering interactive session.

The points after which it stops for a long time is: "debug: Entering interactive session", "Connection established" and "Received encrypted confirmation"

In the same time, connection to host in the same subnet with FBSD from my WS works fine. Thats mean, that problem is in thisFBSD box. But what is this problem?

0
Comment
Question by:shifted
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
pjb1008 earned 400 total points
ID: 7249246
The server is doing DNS lookups to translate the IP address of the client to a name. Check that (a) the server's DNS configuration is correct, and (b) the name server for the appropriate in-addr.arpa records is responding.

Since you get delayed multiple times, I'm guessing that (b) is the problem - bind8 doesn't cache the fact that a name server is not currently reachable.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UNiX Script filesystem space usage 19 79
can't umount nfs share after server goes offline... 4 96
Correct syntax to upload file in a script using sftp 2 97
MarkLogic 1 100
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question