The above implements remote N2N access to the Raspberry Pi, but the SSH protocol will get stuck when the network is in bad condition. A mosh protocol is found here, which can enhance the stability and the effect is obvious after use.
Background: After the use of n2n, in a poor network environment, often will be timeout, causing the entire screen suspended animation.
Mosh: Mosh from MIT aims to make up for many of the shortcomings of SSH. For details, please visit our website: https://mosh.mit.edu/
Client Download:
Official homepage can find the installation method of each system, for Raspberry Pi, only need to run sudo apt-get install mosh.
The official website does not provide a Windows client, a workaround is to use Cywin. There is a ready-made version available for download from http://mobaxterm.mobatek.net/
(MOBALIVECD is also the work of this company). The home version is free to use, many excellent foreign software, such as Xshell. The difference between the home and Pro editions is as follows, in fact the individual is fully sufficient.
Mobile phone side
Mobile client recommended Juicessh, can be downloaded from the cool Ann. Support Mosh Protocol, official website recommended
For some specific information, please refer to:
Http://dwz.cn/Ff4NQ
Technorati tag: Raspberry Pi 2,raspberry pi 2,mosh,ssh,n2n
Using mosh instead of SSH to improve n2n network connection stability