Problem

Strange behavior with the telnet command, like:

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

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.