Next: , Previous: Overview of Additional Features, Up: Kerberos V5 Applications

2.4.2 telnet

The Kerberos V5 telnet command works exactly like the standard UNIX telnet program, with the following Kerberos options added:

forwards a copy of your tickets to the remote host.
forwards a copy of your tickets to the remote host, and marks them re-forwardable from the remote host.
-k realm
requests tickets for the remote host in the specified realm, instead of determining the realm itself.
uses your tickets to authenticate to the remote host, but does not log you in.
attempt automatic login using your tickets. telnet will assume the same username unless you explicitly specify another.
turns on encryption.

For example, if david wanted to use the standard UNIX telnet to connect to the machine, he would type:

     shell% telnet
     Trying ...
     Connected to
     Escape character is '^]'.
     NetBSD/i386 (daffodil) (ttyp3)
     login: david
     Password:    <- david types his password here
     Last login: Fri Jun 21 17:13:11 from
     Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
             The Regents of the University of California.   All rights reserved.
     NetBSD 1.1: Tue May 21 00:31:42 EDT 1996
     Welcome to NetBSD!

Note that the machine asked for david's password. When he typed it, his password was sent over the network unencrypted. If an intruder were watching network traffic at the time, that intruder would know david's password.

If, on the other hand, jennifer wanted to use the Kerberos V5 telnet to connect to the machine, she could forward a copy of her tickets, request an encrypted session, and log on as herself as follows:

     shell% telnet -a -f -x
     Connected to
     Escape character is '^]'.
     [ Kerberos V5 accepts you as ``'' ]
     [ Kerberos V5 accepted forwarded credentials ]
     What you type is protected by encryption.
     Last login: Tue Jul 30 18:47:44 from
     Athena Server (sun4) Version 9.1.11 Tue Jul 30 14:40:08 EDT 2002

Note that jennifer's machine used Kerberos to authenticate her to, and logged her in automatically as herself. She had an encrypted session, a copy of her tickets already waiting for her, and she never typed her password.

If you forwarded your Kerberos tickets, telnet automatically destroys them when it exits. The full set of options to Kerberos V5 telnet are discussed in the Reference section of this manual. (see telnet Reference)