Table Of Contents
UNIX-Style Syntax for rlogin Connections
UNIX-Style Syntax for rlogin Connections
Feature Summary
The rlogin command now supports the standard Berkeley Software Distribution (BSD) UNIX -l option.
The previous EXEC level rlogin command allowed remote users to log in using the /user username option, which was not compatible with the standard UNIX rlogin -l username option.
Benefits
Support for the UNIX-style rlogin command allows users with existing BSD UNIX dial-up scripts to use these scripts without modification.
Platforms
This feature is supported on all of Cisco's TCP/IP-enabled routers and access servers.
Supported MIBs and RFCs
None.
Configuration Tasks
The following tasks are required to use rlogin:
•
Enter the name of the host.
•
Enter the name of the remote user. Use either the /user or the -l option.
•
Specify debug to debug the remote connection.
Configure
Configuration Example
The following example illustrates how the user, Joe Smith, can use rlogin ? (help) and debug to establish and troubleshoot a remote connection to the host Alviso:
4500> rlogin ?WORD IP address or hostname of a remote system4500> rlogin Alviso ?-l Specify remote username/user Specify remote usernamedebug Enable rlogin debugging output<cr>4500> rlogin Alviso -l ?WORD Remote user name4500> rlogin Alviso -l jsmith ?debug Enable rlogin debugging output<cr>4500> rlogin Alviso -l jsmith debugCommand Reference
rlogin
To log in to a UNIX host using rlogin, use the rlogin EXEC command:
rlogin host [-l username] [/user username] [debug]
Syntax Description
Command Mode
EXEC
Usage Guidelines
This command first appeared in Cisco IOS Release 10.0.
You can have several concurrent rlogin connections open and switch back and forth between them. To open a new connection, suspend the current connection by pressing the escape sequence (Ctrl-Shift-6 then x [Ctrl^x] by default) to return to the EXEC prompt, then open a new connection. A user cannot automatically log in to a UNIX system from the router, but must provide a user ID and a password for each connection.
If your preferred transport is set to rlogin, you can use the connect command in place of the rlogin command. Refer to the Dial Solutions Configuration Guide for more information about configuring a preferred transport type. When your preferred transport is set to none or to another protocol, you must use the rlogin command to connect to a host.
To terminate an active rlogin session, issue the appropriate command from the following list at the UNIX prompt of the device to which you are connecting:
•
close
•
disconnect
•
exit
•
logout
•
quit
Examples
The following example illustrates how the user, Joe Smith, can use rlogin ? (help) to make and debug a remote connection to the host Alviso:
4500> rlogin ?WORD IP address or hostname of a remote system4500> rlogin Alviso ?-l Specify remote username/user Specify remote usernamedebug Enable rlogin debugging output<cr>4500> rlogin Alviso -l ?WORD Remote user name4500> rlogin Alviso -l jsmith?debug Enable rlogin debugging output<cr>4500> rlogin Alviso -l jsmith debugThe following example illustrates debug return on the host, zipper, by the user, staff:
yak# rlogin zipper.cisco.com -l staff debugTrying zipper.cisco.com (171.69.63.31)... OpenRLOGIN: local username is: ciscoTSRLOGIN: remote username is: staffPassword:Last login: Wed Jun 24 06:15:36 from itech-view3.cisc1 zipper> uptime1:40pm up 42 day(s), 20:53, 80 users, load average: 1.44, 2.67, 3.392 zipper> logout[Connection to zipper.cisco.com closed by foreign host]yak#The following example makes an rlogin connection to a host at address 108.33.21.2 for a user named supervisor and enables the message mode for debugging:
router> rlogin 108.33.21.2 -l supervisor debugThe following example makes an rlogin connection to a host named headquarters for the user named admin:
router> rlogin headquarters -l adminRelated Commands
connect
telnetWhat to Do Next
For more information, refer to the "Configure Support for Telnet and Rlogin Calls" chapter in the Dial Solutions Configuration Guide.