From owner-freebsd-stable Thu Nov 30 23:30:37 2000 Delivered-To: freebsd-stable@freebsd.org Received: from picalon.gun.de (picalon.gun.de [192.109.159.1]) by hub.freebsd.org (Postfix) with ESMTP id 33F9937B400 for ; Thu, 30 Nov 2000 23:30:32 -0800 (PST) Received: (from uucp@localhost) by picalon.gun.de (8.9.3/8.9.3) id IAA01234 for freebsd-stable@FreeBSD.ORG; Fri, 1 Dec 2000 08:30:22 +0100 (MET) >Received: (from andreas@localhost) by klemm.gtn.com (8.11.1/8.11.1) id eB17FJt07007 for freebsd-stable@FreeBSD.ORG; Fri, 1 Dec 2000 08:15:19 +0100 (CET) (envelope-from andreas) Date: Fri, 1 Dec 2000 08:15:19 +0100 From: Andreas Klemm To: freebsd-stable@FreeBSD.ORG Subject: can't flash Cisco 2516 using rcp (recv Message-ID: <20001201081519.A4307@titan.klemm.gtn.com> Mime-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.2-STABLE SMP X-Disclaimer: A free society is one where it is safe to be unpopular Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi ! Is rcp broken somehow ? I want to write a new IOS image to my routers flash. I want to try rcp instead of tftp. Here a session trace with debug ip tcp rcmd enabled. Proceed? [confirm] = Address or name of remote host [172.16.2.1]? = Source username [ios]? = Source filename [c2500-ios56i-l.121-5.T.bin]? = Destination filename [c2500-ios56i-l.121-5.T.bin]? = The returned username is ios(36008C) = Accessing rcp://ios@172.16.2.1/c2500-ios56i-l= .121-5.T.bin... %Error opening rcp://ios@172.16.2.1/c250= 0-ios56i-l.121-5.T.bin (Permission denied) = c2516# = 00:16:38: RCMD: [960 -> 1= 72.16.2.1:514] send \0 00:16:38: RCMD: [960= -> 172.16.2.1:514] send c2516\0 00:16:38: RCMD:= [960 -> 172.16.2.1:514] send ios\0 00:16:38: = RCMD: [960 -> 172.16.2.1:514] send rcp -f c2500-ios56i-l.121-5.T.bin\000:16= :38: RCMD: [960 <- 172.16.2.1:514] recv = c2516# = =20 Router config looks o.k.: ip rcmd rcp-enable ip rcmd rsh-enable ip rcmd remote-host andreas 172.16.2.1 andreas enable ip rcmd remote-host cisco 172.16.2.1 cisco enable ip rcmd remote-host cron 172.16.2.1 cron enable ip rcmd remote-username andreas ip rcmd source-interface Ethernet0 /home/andreas/.rhosts has proper permissions: -rw------- 1 andreas andreas 174 1 Dez 07:56 /home/andreas/.rhosts c2516 172.16.2.2 (is the routers IP). I played around with two settings in /etc/pam.conf # r-utils are broken; ensure this doesn't bother folk #rshd auth required pam_deny.so rshd auth required pam_permit.so My /etc/inetd.conf looks like this: shell stream tcp nowait root /usr/libexec/rshd rshd added this to /etc/inetd.conf as a test, kill -1 exec stream tcp nowait root /usr/libexec/rexecd rexecd Did I overlook something ??? FreeBSD titan.klemm.gtn.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Thu Nov 30 23= :28:43 CET 2000 root@titan.klemm.gtn.com:/usr/src/sys/compile/TITAN i3= 86 The other way around works fine ... rsh cisco andreas@titan{1006} $ rsh cisco sh ver Cisco Internetwork Operating System Software=20 IOS (tm) 2500 Software (C2500-IOS56I-L), Version 12.1(4.3)T, MAINTENANCE I= NTERIM SOFTWARE --=20 Andreas Klemm Powered by FreeBSD = SMP Songs from our band >>64Bits<<............http://www.apsfilter.org/64bits.h= tml My homepage................................ http://people.FreeBSD.ORG/~andr= eas Please note: Apsfilter got a NEW HOME................http://www.apsfilter.o= rg/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message