<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Mosh</id>
	<title>Mosh - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Mosh"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Mosh&amp;action=history"/>
	<updated>2026-07-15T11:23:59Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Mosh&amp;diff=2703627&amp;oldid=prev</id>
		<title>imported&gt;Cheuye：​// via Wikitext Extension for VSCode</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Mosh&amp;diff=2703627&amp;oldid=prev"/>
		<updated>2025-12-24T08:43:14Z</updated>

		<summary type="html">&lt;p&gt;// via Wikitext Extension for VSCode&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Expand language|en}}&lt;br /&gt;
{{NoteTA|G1=IT}}&lt;br /&gt;
{{Infobox software&lt;br /&gt;
| name = &amp;lt;code&amp;gt;Mosh&amp;lt;/code&amp;gt;&lt;br /&gt;
| screenshot = [[File:Mosh demo screenshot.png|326px|Mosh的畫面截圖，網路暫時中斷，底線字為暫時由本地端顯示。]]&lt;br /&gt;
| caption = 網路暫時中斷，底線字為暫時由本地端顯示。&lt;br /&gt;
| author = Keith Winstein&lt;br /&gt;
| released = {{Start date and age|2012|03|12}}&lt;br /&gt;
| operating_system = [[类Unix]]系统&lt;br /&gt;
| genre = 实用工具&lt;br /&gt;
| license = GNU [[GPLv3]]，[[OpenSSL]]和[[iOS]]除外&lt;br /&gt;
| website = https://mosh.org/&lt;br /&gt;
}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Mosh&amp;#039;&amp;#039;&amp;#039;（{{lang|en|mobile shell}}）是一套從用戶端連到伺服器端的軟體。類似於[[Secure Shell]]&amp;lt;ref&amp;gt;{{Cite web|url=https://www.linux.com/learn/mosh-pit-mobile-shell-replacement-ssh|title=Into the Mosh Pit: A Mobile Shell Replacement for SSH|accessdate=2018-01-18|archive-date=2018-10-26|archive-url=https://web.archive.org/web/20181026025144/https://www.linux.com/learn/mosh-pit-mobile-shell-replacement-ssh|dead-url=no}}&amp;lt;/ref&amp;gt;，但還針對對行動環境的特性調整。&lt;br /&gt;
&lt;br /&gt;
== 特性 ==&lt;br /&gt;
* Mosh不綁定使用者端的IP地址，這使得使用者從行動網路（像是[[3G]]、[[4G]]）與[[WiFi]]之間切換時，不會造成連線中斷。&amp;lt;reF&amp;gt;&lt;br /&gt;
{{Cite web|url=https://www.techopedia.com/2/28746/tech-support/linux/mosh-secure-shell-without-the-pain|title=Mosh: Secure Shell Without the Pain|accessdate=2018-01-18|date=2012-10-19|archive-date=2020-09-27|archive-url=https://web.archive.org/web/20200927102218/https://www.techopedia.com/2/28746/tech-support/linux/mosh-secure-shell-without-the-pain|dead-url=no}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Mosh保持連線開啟，當此用者斷線時，伺服器端只會認定為暫時離線（{{lang|en|sleep}}）讓使用者可以稍候連回來。相對的，SSH因為透過TCP，在使用者斷線時會造成連線中斷。&amp;lt;ref&amp;gt;{{Cite web|url=http://www.networkworld.com/article/2189813/wireless/mit-researchers-chart-a-new-approach-for-mobile-internet-protocols.html|title=MIT researchers chart a new approach for mobile Internet protocols|accessdate=2018-01-18|date=2012-07-06|archive-date=2018-05-25|archive-url=https://web.archive.org/web/20180525150021/https://www.networkworld.com/article/2189813/wireless/mit-researchers-chart-a-new-approach-for-mobile-internet-protocols.html|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Mosh會試著在本地端馬上顯示使用者所輸入的按鍵，這使得使用者會感覺到更少的延遲。&amp;lt;ref&amp;gt;{{Cite web|url=http://www.linux-magazine.com/Issues/2012/144/Mosh-and-AutoSSH|title=Tools for channeling SSH over an unreliable connection|accessdate=2018-01-18|archive-date=2020-10-21|archive-url=https://web.archive.org/web/20201021160930/https://www.linux-magazine.com/Issues/2012/144/Mosh-and-AutoSSH|dead-url=no}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mosh主要的缺點在於需要額外的設定，以及缺乏某些SSH能提供的功能（如连接转发）。&lt;br /&gt;
&lt;br /&gt;
== 設計 ==&lt;br /&gt;
相較於[[SSH]]，Mosh運作於不同層。SSH透過[[传输控制协议|TCP]]雙向傳輸資料，Mosh則是在伺服器端模擬終端機，得知終端機上的內容後，再依據用戶端的網路速度計算要更新到用戶端的內容&amp;lt;ref name=&amp;quot;usenixatc12&amp;quot;&amp;gt;{{Cite web |url=https://www.usenix.org/conference/atc12/technical-sessions/presentation/winstein |title=Mosh: An Interactive Remote Shell for Mobile Clients |accessdate=2016-04-27 |archive-date=2020-08-06 |archive-url=https://web.archive.org/web/20200806052457/https://www.usenix.org/conference/atc12/technical-sessions/presentation/winstein |dead-url=no }}&amp;lt;/ref&amp;gt;。這使得Mosh在速度不快的網路表現的很好。&lt;br /&gt;
&lt;br /&gt;
== 支援系統 ==&lt;br /&gt;
Mosh支援大多數的[[Linux]]套件、[[Mac OS X]]、[[FreeBSD]]、[[NetBSD]]、[[OpenBSD]]、[[Android]]、[[Solaris]]、[[Cygwin]]，以及[[Chrome App]]。&lt;br /&gt;
&lt;br /&gt;
== 效能 ==&lt;br /&gt;
=== 漫遊 ===&lt;br /&gt;
Mosh使用了State-Synchronization Protocol（SSP）&amp;lt;ref&amp;gt;{{Cite web |url=https://www.helpnetsecurity.com/2012/07/09/mit-unveils-a-new-internet-protocol-for-mobile-clients/ |title=MIT unveils a new Internet protocol for mobile clients |accessdate=2016-04-30 |archive-date=2018-10-26 |archive-url=https://web.archive.org/web/20181026025052/https://www.helpnetsecurity.com/2012/07/09/mit-unveils-a-new-internet-protocol-for-mobile-clients/ |dead-url=no }}&amp;lt;/ref&amp;gt;，這使得Mosh支援單封包漫遊&amp;lt;ref&amp;gt;{{Cite web |url=https://mosh.mit.edu/mosh-paper-draft.pdf |title=Mosh: An Interactive Remote Shell for Mobile Clients |accessdate=2016-04-30 |archive-date=2016-03-14 |archive-url=https://web.archive.org/web/20160314105050/https://mosh.mit.edu/mosh-paper-draft.pdf |dead-url=no }}&amp;lt;/ref&amp;gt;。當用戶端切換IP位置時，不需要額外的封包進行認證，而用戶端也不需要知道自己已經切換位置了（這包括了用戶端可能使用NAT，而NAT本身切換IP位置）&amp;lt;ref name=&amp;quot;usenixatc12&amp;quot;/&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
=== 封包遺失 ===&lt;br /&gt;
在Mosh作者的研究中，作者測試在29%封包遺失率的情況下，Mosh所使用的SSP比SSH有效降低大約五十倍的平均回應時間（從16.8秒降為0.33秒）&amp;lt;ref name=&amp;quot;usenixatc12&amp;quot;/&amp;gt;。另外由[[史丹佛大學]]學生的研究則顯示大約30倍，從5.9秒降為0.19秒&amp;lt;ref&amp;gt;{{Cite web |url=https://reproducingnetworkresearch.wordpress.com/2013/03/14/mosh-cs244-13/ |title=CS244 &amp;#039;13: MOSH |accessdate=2016-04-30 |archive-date=2020-11-18 |archive-url=https://web.archive.org/web/20201118034543/https://reproducingnetworkresearch.wordpress.com/2013/03/14/mosh-cs244-13/ |dead-url=no }}&amp;lt;/ref&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
== 相關連結 ==&lt;br /&gt;
* [[tmux]]&lt;br /&gt;
* [[Secure Shell]]&lt;br /&gt;
* [[命令行界面]]&lt;br /&gt;
&lt;br /&gt;
== 註解 ==&lt;br /&gt;
{{Reflist|2}}&lt;br /&gt;
&lt;br /&gt;
== 外部連結 ==&lt;br /&gt;
* {{en}} [https://mosh.mit.edu Mosh: the mobile shell]{{Wayback|url=https://mosh.mit.edu/ |date=20201125123851 }}，官方網站。&lt;br /&gt;
&lt;br /&gt;
[[Category:应用层协议]]&lt;br /&gt;
[[Category:Unix软件]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Cheuye</name></author>
	</entry>
</feed>