<div dir="ltr">On Sun, Aug 2, 2015 at 8:50 AM, john hood <span dir="ltr"><<a href="mailto:cgull@glup.org" target="_blank">cgull@glup.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 8/1/15 4:06 PM, Richard H. McCullough wrote:<br>
> 1) I installed Cygwin mosh on Windows 8.1 Pro and Windows 10 Pro<br>
> I installed Homebrew mosh on iMac OSX 10.10.4<br>
><br>
> 2) From Win8.1 and Win10 Cygwin<br>
> ssh rhmimac succeeds<br>
> mosh rhmimac fails<br>
><br>
> copy/paste from Win10 Cygwin terminal screen:<br>
><br>
> rhm@lenovo7<br>
> $ ssh rhmimac<br>
> Warning: Permanently added the RSA host key for IP address<br>
> '192.168.1.71' to the list of known hosts.<br>
> Password:<br>
> Last login: Sat Aug 1 12:24:27 2015 from levono7<br>
> rhmimac:~ rhm$ pwd<br>
> /Users/rhm<br>
> rhmimac:~ rhm$ lf<br>
> Applications/ Norton Zone/ brew.install.bison input.log share/<br>
> Applications (Parallels)/ OLDbin/ brew.install.gtk-doc junk/ software/<br>
> Desktop/ OLDunicon/ cyc/ lib/ src/<br>
> Documents/ OneDrive/ db/ mKE 4-20-14, 4.32 AM.xcarchive/ sumo/<br>
> Downloads/ Pictures/ family/ mac/ temp/<br>
> Dropbox/ Public/ get-pip.py mactest/ test/<br>
> Google Drive/ Snap2.jpg github/ mke.log toc.html<br>
> KE/ Snap3.jpg gtest/ newtest/<br>
> Library/ UNICON.3833/ include/ none.log<br>
> Movies/ brew.config index.htm python/<br>
> Music/ brew.doctor info/ rcyc/<br>
> rhmimac:~ rhm$ which mosh<br>
> /usr/local/bin/mosh<br>
> rhmimac:~ rhm$ which mosh-server<br>
> /usr/local/bin/mosh-server<br>
> rhmimac:~ rhm$ exit;<br>
> logout<br>
> Connection to rhmimac closed.<br>
><br>
><br>
> rhm@levono7 ~<br>
> $ mosh rhmimac<br>
> Password:<br>
> bash: mosh-server: command not found<br>
> Connection to rhmimac closed.<br>
> /usr/bin/mosh: Did not find mosh server startup message.<br>
> rhm@levono7 ~<br>
<br>
</div></div>As the error indicates, mosh-server was not found at startup. That's<br>
because the program is installed as /usr/local/bin/mosh-server, but that<br>
directory is not included in the default PATH for login sessions.<br>
<br>
mosh --server=/usr/local/bin/mosh-server rhimac<br>
<br>
should work, or you can set PATH to include this directory in your shell<br>
startup scripts.<br>
<br>
Also, the OS X firewall may pop up an allow/deny dialog the first time<br>
you try and run mosh-server, so you need to be at the Mac to click on it.<br>
<span class=""><br>
> 3) from iMac OS X 10.10.4<br>
> ssh lenovo7 fails<br>
> mosh lenovo7 fails<br>
><br>
> error messages from iMac OS X 10.10.4 terminal screen:<br>
><br>
> rhmimac:~ rhm$ ssh lenovo7<br>
> ssh: Could not resolve hostname lenovo7: nodename nor servname provided,<br>
> or not known<br>
> rhmimac:~rhm$ mosh lenovo7<br>
> /usr/local/bin/mosh: Could not resolve hostname lenovo7<br>
> ssh_exchange_identification: Connection closed by remote host<br>
> /usr/local/bin/mosh: Did not find remoe IP address (is SSH ProxyCommand<br>
> disabled?).<br>
> rhmimac:~ rhm$<br>
<br>
</span>This has nothing to do with either ssh or mosh; your Mac simply isn't<br>
finding 'lenovo7'. The typescript of your ssh-to-rhimac session above<br>
suggests you might have a typo in its naming somewhere and it might be<br>
'levono7' on your network. This seems to be a fairly common typo with<br>
the Lenovo name.<br>
<br>
regards,<br>
<br>
--jh<br><br></blockquote><div><br></div><div>Hi John;</div><div><br></div><div>I've been interacting with Richard off-list (I meant to cc: the list, but seems to have not worked). We've resolved the hostname issue (he dropped some manual entries into his /etc/hosts) and the --server was also successful already.</div><div><br></div><div>One final issue of a Windows7 not running SSH service (Connection Refused on tcp/22) -- I know it's no longer a Mosh issue, but do you guys know how Windows7 is supposed to have a ssh server running? I didn't think it had a SSH server, which means Richard might be using some custom builder like a Brew or Ports collection.</div><div><br></div><div>Allan</div><div><br></div><div><span style="color:rgb(80,0,80);font-size:13px">-- </span><br style="color:rgb(80,0,80);font-size:13px"><div style="color:rgb(80,0,80);font-size:13px"><a href="mailto:allanc@chickenandporn.com" target="_blank">allanc@chickenandporn.com</a> "金鱼" <a href="http://linkedin.com/in/goldfish" target="_blank">http://linkedin.com/in/goldfish</a></div></div></div>
</div></div>