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
/terminfo
entry. 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:44ENV
and 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:57resize
is part of thexterm
package, I assume it's the same on Ubuntu. – dirkt May 22 '17 at 11:29stty size
print the correct size before and after running ssh? – Gilles 'SO- stop being evil' May 22 '17 at 23:35busybox
'resize
instead of the one from thexterm
package but normally it should not be required onssh
since 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:58kubectl
is the culprit. You can easily confirm by runningstty size
ormc
afterssh
ing but before launchingkubectl
, they should work correctly. I'm not familiar withkubectl
but 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 0
size returned not always. – Eugen Konkov May 23 '17 at 14:01