Question: I am dealing with a really slow shell connection. It is in the cloud and I am very far from the server. My connection also breaks sometimes as it is over the internet and I may also be using shared Wifi or 3G. Is there a way to see what I type instantly? Trying to type commands and waiting for each character is atrocious.

Answer: 
Try [Mosh](http://mosh.mit.edu/).

> 
> **Mosh (mobile shell)**  
> 
>  Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.
> 
> 
> Mosh is a replacement for SSH. It's more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.
> 
> 
> Mosh is free software, available for GNU/Linux, FreeBSD, Solaris, Mac OS X, and Android.
> 
> 
>
For future readers of this thread, @lowellheddings' tip in his [blog](https://www.howtogeek.com/howto/linux/keep-your-linux-ssh-session-from-disconnecting/), together with the use of [screen](https://linux.die.net/man/1/screen), could help overcome this issue: 

You can configure the ssh client to automatically send a protocol no-op code code every number of seconds so that the server won’t disconnect you. This setting is sometimes referred to as Keep-Alive or Stop-Disconnecting-So-Much in other clients.  

Add the following line to the /etc/ssh/ssh\_config file:  

 ServerAliveInterval 60  

...