Input issues with telnet

Problem

Strange behavior with the telnet command, like:

  • Cannot enter password while on a VMS or Tru64 installation,
  • During operating system installation all answers are repeated,
  • Input is echoed (including passwords),
  • Escape sequence is not interpreted,
  • Arrow keys are not functional

Solution

Use the character mode within the telnet session

This can be done two ways:

  1. Temporary setup (if the session is already active)
    1. Press the telnet escape character: ^] by default ( CTRL + ] ). You can change the escape character by using the -e option

      Example:

      # telnet -e ² myhost port

      .

    2. Define character mode at telnet prompt:

      telnet> mode char

      .

  2. Permanent setup with .telnetrc settings (before running the telnet session)

    # vi $HOME/.telnetrc
    DEFAULT
        mode char
    :wq
    # telnet myhost port

Related articles




© Stromasys, 1999-2024  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.