cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1999
Views
0
Helpful
2
Replies

remote configuration over rsh

rish01
Level 1
Level 1

Hi

Does anybody knows if it possible to enter multiple commands over rsh on Cisco device.

I mean sequences like this:

conf t

service password-encryption

username xxxx secret yyyy

2 Replies 2

Lucien Avramov
Level 10
Level 10

you can only run show commands from exec mode with rsh.

It is not made to send config commands.

I just tried in my lab :

lulu-mbp$ rsh -l admin 172.16.153.140 show ver

Cisco IOS Software, s72033_rp Software (s72033_rp-ADVENTERPRISE_WAN-M), Version 12.2(33)SXI1, RELEASE SOFTWARE (fc3)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2009 by Cisco Systems, Inc.

Compiled Sat 28-Mar-09 10:29 by prod_rel_team

BUT config terminal will fail :

lulu-mbp$ rsh -l admin 172.16.153.140 conf t

Permission denied.

Same for the other commands, rsh will not be the way to go here.

It's possible to enter conf t through rsh.

I made it. May you didn't add "enable" keyword at the end of the "ip rcmd remote-host..." command. The problem is that rsh doesn't accept more than one command at a time.

Review Cisco Networking for a $25 gift card