{"id":623,"date":"2017-05-02T21:40:41","date_gmt":"2017-05-02T13:40:41","guid":{"rendered":"https:\/\/eligiblestore.com\/blog\/?p=623"},"modified":"2020-07-07T13:22:47","modified_gmt":"2020-07-07T05:22:47","slug":"how-to-install-mosh-on-centos","status":"publish","type":"post","link":"https:\/\/eligiblestore.com\/blog\/2017\/05\/02\/how-to-install-mosh-on-centos\/","title":{"rendered":"How to install mosh on CentOS 6.9"},"content":{"rendered":"<p>Why <a href=\"https:\/\/mosh.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Mosh<\/a> over SSH? No lag, stay connected. (Some steps are different with CentOS 7.x &#8211; See comments for details)<\/p>\n<p>Quick guide to install Mosh on CentOS 6.9:<\/p>\n<ol>\n<li>SSH to your VPS<\/li>\n<li>You need to install Epel Repo\n<ul>\n<li>Type:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$\u00a0yum install epel-release<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Install Mosh\n<ul>\n<li>Type:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$ yum install mosh<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Set firewall rules to allow traffic\n<ul>\n<li>Write rules:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$\u00a0sudo iptables -I INPUT 1 -p udp --dport 60000:61000 -j ACCEPT<\/pre>\n<\/li>\n<li>Save rules:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">$\u00a0sudo service iptables save<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>(Optional) I am using Mac and everytime to connect I have this error &#8220;The locale requested by LC_CTYPE=UTF-8 isn&#8217;t available here &#8230; Did not find mosh server startup message. (Have you installed mosh on your server?)&#8221;<br \/>\nIf you have the same problem:<\/p>\n<ul>\n<li>Edit your \/.bashrc file using your favorite editor<\/li>\n<li>add this 2 lines:\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">LANG=&quot;en_US.UTF-8&quot;\r\nexport LANG<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>That&#8217;s it.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Why Mosh over SSH? No lag, stay connected. (Some steps are different with CentOS 7.x &#8211; See comments for details) Quick guide to install Mosh on CentOS 6.9: SSH to your VPS You need to install Epel Repo Type: $\u00a0yum install epel-release Install Mosh Type: $ yum install mosh Set firewall rules to allow traffic [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":621,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[9,32],"tags":[],"class_list":["post-623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-database","category-tutorial"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8pg5H-a3","jetpack-related-posts":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/eligiblestore.com\/blog\/wp-content\/uploads\/2017\/05\/mosh.jpg?fit=1196%2C696&ssl=1","_links":{"self":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts\/623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/comments?post=623"}],"version-history":[{"count":3,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts\/623\/revisions"}],"predecessor-version":[{"id":1288,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/posts\/623\/revisions\/1288"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/media\/621"}],"wp:attachment":[{"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/media?parent=623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/categories?post=623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eligiblestore.com\/blog\/wp-json\/wp\/v2\/tags?post=623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}