akash-network / support

Akash Support and Issue Tracking
5 stars 4 forks source link

[gvisor] broken terminal behavior when connected over ssh to sshd running inside the deployment #35

Open arno01 opened 2 years ago

arno01 commented 2 years ago

The terminal is broken when ssh'ing to the sshd running inside the pod. And when using akash provider lease-shell it is working well. Must have something to do with tty or around that.

We’ve tried these gVisor versions: 20220425.0, 20210720.0, 20220502.1-7-gb86c98c82bb2 (nightly).

With 20210720.0 we’ve experienced only a network performance degradation issue, however, we have not observed the broken terminal issue.


The issue looks like this:

$ ssh -p 31572 root@akash-01.crono.co
The authenticity of host '[akash-01.crono.co]:31572 ([189.1.168.105]:31572)' can't be established.
ECDSA key fingerprint is SHA256:nL6Mll5WFKgBWSNk8aDshi0vULnJ/xpgZ6mmsRMfaaI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[akash-01.crono.co]:31572,[189.1.168.105]:31572' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 21.10 (GNU/Linux 4.4.0 x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

root@ssh-58db597557-4kn8n:~# date

[1]   Stopped                 date
root@ssh-58db597557-4kn8n:~# date

[2]+  Stopped                 date
root@ssh-58db597557-4kn8n:~# fg
date
Thu May  5 14:45:38 UTC 2022
root@ssh-58db597557-4kn8n:~# fg
date
Thu May  5 14:45:40 UTC 2022

ssh deployment manifest file

https://gist.github.com/arno01/f33b7c618ecf090108a33deea38c3c10