Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to set ssh window width and length

    using ssh and/or telnet for remote admin of linux boxes
    long lines of data returned are being truncated or corrupted because of default window setting of 80 characters wide 24 lines long

    how to adjust window width and length?
    how to send SSH_MSG_CHANNEL_REQUEST message?

    RFC 4254 SSH Connection Protocol January 2006

    6.2. Requesting a Pseudo-Terminal

    A pseudo-terminal can be allocated for the session by sending the
    following message.

    uint32 recipient channel
    string "pty-req"
    boolean want_reply
    string TERM environment variable value (e.g., vt100)
    uint32 terminal width, characters (e.g., 80)
    uint32 terminal height, rows (e.g., 24)
    uint32 terminal width, pixels (e.g., 640)
    uint32 terminal height, pixels (e.g., 480)
    string encoded terminal modes

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Have you tried the stty command to change the tty parameters of your ssh terminal connection?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    depending on your use-case, the -t "force pseudo-tty allocation" option to ssh can prove helpful (e.g.
    ssh -t host watch df

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts