I have Linux mint 18, the remote machine have Ubuntu 16.04.
When I setup remote session via ssh sometimes it is broken:
As you can see it is restricted by 80x40, but I expect it should take full screen
Sometimes it takes full window, sometimes not.
How to fix that? it should take whole window always.
UPD
I miss major information. I ssh on host then I enter into container:
`kubectl --namespace=$NAMESPACE exec -ti `kubectl --namespace=$NAMESPACE get pods | grep $NAME | cut -f 1 -d ' '` bash`
UPD
$ gnome-terminal --version
GNOME Terminal 3.18.3
A terminal emulator for the GNOME desktop Using VTE version 0.42.5 +GNUTLS
UPD
stty size
0 0


TERM, and with the correspondingterncap/terminfoentry. What is different wen you run into the problem? – Satō Katsura May 22 '17 at 07:41termcap/terminfo(terMcap) – Romeo Ninov May 22 '17 at 07:44ENVand compare them when this problem occur. I will update question with that info. Thanks – Eugen Konkov May 22 '17 at 08:11eval resize. – dirkt May 22 '17 at 09:23bash: resize: command not found, but window resizing helps – Eugen Konkov May 22 '17 at 09:57resizeis part of thextermpackage, I assume it's the same on Ubuntu. – dirkt May 22 '17 at 11:29stty sizeprint the correct size before and after running ssh? – Gilles 'SO- stop being evil' May 22 '17 at 23:35busybox'resizeinstead of the one from thextermpackage but normally it should not be required onsshsince the window resize signal normally works there fine. – phk May 23 '17 at 08:41stty size -> 0 0– Eugen Konkov May 23 '17 at 08:57ssh– Eugen Konkov May 23 '17 at 08:58kubectlis the culprit. You can easily confirm by runningstty sizeormcaftersshing but before launchingkubectl, they should work correctly. I'm not familiar withkubectlbut I guess it connects to a getty on a serial port or something like that, which by design cannot transfer "meta-data" such as the window size, only the actual bytes to be processed by the terminal emulator. – egmont May 23 '17 at 12:560 0size returned not always. – Eugen Konkov May 23 '17 at 14:01