Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2000 08:15:19 +0100
From:      Andreas Klemm <andreas@klemm.gtn.com>
To:        freebsd-stable@FreeBSD.ORG
Subject:   can't flash Cisco 2516 using rcp (recv <BAD, Login incorrect.>
Message-ID:  <20001201081519.A4307@titan.klemm.gtn.com>

next in thread | raw e-mail | index | archive | help
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 <BAD, Login incorrect.>            =
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 <PID of inetd>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001201081519.A4307>