{"id":355,"date":"2020-06-02T01:09:43","date_gmt":"2020-06-02T01:09:43","guid":{"rendered":"http:\/\/mohammedlakkadshaw.com\/blog\/?p=355"},"modified":"2020-06-02T01:09:43","modified_gmt":"2020-06-02T01:09:43","slug":"using-mosh-with-mac-when-installed-with-homebrew","status":"publish","type":"post","link":"https:\/\/mohammedlakkadshaw.com\/blog\/using-mosh-with-mac-when-installed-with-homebrew.html","title":{"rendered":"Using Mosh with Mac when installed with homebrew"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When you install mosh with homebrew and if you try to connect to your computer, you will get an error message <code>command not found mosh-server<\/code> it is because when installed with homebrew, when you ssh into the computer, the path to the mosh-server binary is not present in the PATH.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To solve this issue you just need to pass the &#8211;server parameter with the path to the mosh-server binary which in our case would be at <code>\/usr\/local\/bin\/mosh-server<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So in summary use the following command to connect to your mac via mosh<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>mosh --server='\/usr\/local\/bin\/mosh-server' &lt;username>@&lt;address_of_remote_server><\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>mosh --server='\/usr\/local\/bin\/mosh-server' mohammed@192.168.1.20<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install mosh with homebrew and if you try to connect to your computer, you will get an error message command not found mosh-server it is because when installed with homebrew, when you ssh into the computer, the path to the mosh-server binary is not present in the PATH. To solve this issue you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-355","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":0,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/posts\/355\/revisions"}],"wp:attachment":[{"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/media?parent=355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/categories?post=355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohammedlakkadshaw.com\/blog\/wp-json\/wp\/v2\/tags?post=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}