From owner-freebsd-questions@FreeBSD.ORG Wed Dec 31 01:51:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7A716A4CE for ; Wed, 31 Dec 2003 01:51:39 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7763343D58 for ; Wed, 31 Dec 2003 01:51:35 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) hBV9pGwd098809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Dec 2003 09:51:16 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id hBV9pFj7098808; Wed, 31 Dec 2003 09:51:15 GMT (envelope-from matthew) Date: Wed, 31 Dec 2003 09:51:15 +0000 From: Matthew Seaman To: John Von Essen Message-ID: <20031231095115.GA98228@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , John Von Essen , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: rsh and rcp problems between Solaris and FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 09:51:39 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 30, 2003 at 11:42:41PM -0500, John Von Essen wrote: >=20 > I have a Solaris 2.6 box that has been sending data to a Solaris 8 box=20 > via rsh and rcp. >=20 > I finally changed the Solaris 8 box to a FreeBSD 4.9-STABLE machine. >=20 > Unfortunately, I am noticing alot of problems with my rsh and rcp=20 > calls. Again, the rsh/rcp calls are being initiated on my Solaris 2.6=20 > and are hitting a FreeBSD 4.9-STABLE box. >=20 > Here is what happens: >=20 > My first rsh works, but if I try another rsh within a few seconds it=20 > takes a really long time (30 - 60 sec) to return - but it does return=20 > successful. If I issue my rsh calls every 2 minutes, it returns quick=20 > everytime. But if I do rsh calls to close together (5 sec delays) they=20 > hang for a long time. Now that is weird. 30-60 second delay sounds like classic DNS breakage, but in that case you'ld see it the first time you connected and probably subsequent times. How are you doing name resolution on this system -- host files, NIS, DNS, something else? Are you using Kerberos at all? Does toggling the use of the '-D' and '-n' flags in inetd.conf on the FreeBSD side make any difference? Hmmm... does this happen all of the time, or do you get a grace period of a few minutes immediately after rebooting the FreeBSD box? Are you perhaps ending up with an awful lot of connections sitting in CLOSE_WAIT stage on the FBSD box? =20 > The rcp behaves the same way - but with an added oddity... I can't seem= =20 > to 'rcp -r' directories. For example, say I have /tmp/test and in there= =20 > I have three files (a, b, and c.). When I try to rcp -r that directory,= =20 > I get the following: >=20 > # rcp -r /tmp/test host:/tmp > rcp: /tmp/test/a/b: Not a directory > rcp: /tmp/test/a/b/c: Not a directory >=20 > Very weird! Does saying: # rcp -r /tmp/test host:/tmp/ (note the trailing '/') make a difference? This is by analogy to cp(1) where trailing slashes do have a similar sort of effect -- I think that's a feature of BSD-ish Unices but not SysV-ish flavours. =20 > Anyone have any ideas? If I can't get this resolved I am going to have=20 > to go back to the old SUN to SUN setup and scrap the FreeBSD machine. rcp(1) and rsh(1) are really considered as legacy stuff on FreeBSD nowadays. Most people will strongly advise you to use ssh(1) and scp(1) instead -- those are standard on Solaris 9 but you'll have to compile yourself up a copy on Solaris 2.6. You can use key based authentication with ssh-agent(1) in order to avoid having to put in passwords all the time: see the SSH FAQ at http://www.snailbook.com/faq/no-passphrase.auto.html Note too that sshd(8) under FreeBSD disallows root access by default, but there's a pretty obvious control in the /etc/ssh/sshd.conf config file. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQE/8pwTdtESqEQa7a0RAnIoAKCL4Jkt9GQUeo3uf36evVkKigiQBACfSFj9 R/lQbNa06VLW9IBnnEM5YF0= =ZZq3 -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--