0

I have several Centos servers that enforce an 80 column limit when I ssh into them, rather than being dynamic and going to the width of whatever shell I am using as seen here: enter image description here

.

Is there a way to update the settings (perhaps an stty command) in order to have the column width update to the width of whatever shell I am using (gnome-shell with ubuntu). I notice that if I perform stty -a on my ubuntu terminal the column number keeps updating to whatever width I am set to, but the centos server I ssh into does not.

For some reason I do not have this same problem when I ssh into ubuntu servers and seems to be centOS specific.

Glorfindel
  • 1,213
  • 3
  • 15
  • 22
Programster
  • 485
  • 12
  • 22
  • This is not something CentOS does by default. Someone specifically customized your system to behave this way. Contact that person. – Michael Hampton Mar 22 '13 at 15:38
  • No. I have set up/installed these servers myself. Perhaps it has something to do with the fact that they are Supermicro servers with ipmi access? – Programster Mar 22 '13 at 19:01
  • 1
    What does that have to do with anything? – Michael Hampton Mar 22 '13 at 19:05
  • I was just plucking at straws as I have not manually configured CentOS to behave differently, and this happens to my supermicro servers and not my desktops that I install centos to. – Programster Mar 24 '13 at 14:28
  • Are you trying to ssh to the IPMI console? – Michael Hampton Mar 24 '13 at 15:19
  • nono, this is just a normal ssh session. If CentOS does not do this by default I will have to search for other reasons. – Programster Mar 25 '13 at 07:46
  • I ever had similar problems on one system. Try `kill -s SIGWINCH $$` or add it in your shell rc files. Not sure if this would help for your case. – SF.express Mar 26 '13 at 07:20
  • That didn't help. Could this be a cpanel default setting/option? – Programster Mar 26 '13 at 11:09
  • What does it say when you run 'echo $TERM'? Do that both on the local system before sshing into the CentOS system and again when you're on the CentOS system. –  Apr 11 '13 at 23:08

1 Answers1

0

yes, that's pretty standard CentOS behavior. if you can figure out the size of the xterm where you're running ssh then set them manually (stty columns 196 rows 142) and then clear the screen it seems to work. that's not very optimal though. its just another user interface fail.