From keithw at MIT.EDU Mon Jul 2 20:10:11 2012 From: keithw at MIT.EDU (Keith Winstein) Date: Mon, 2 Jul 2012 20:10:11 -0400 Subject: [mosh-users] mosh feature request In-Reply-To: References: Message-ID: Hello Darren, We don't have this feature now as part of Mosh. Most users who want to keep sessions running on the server even if they reboot the client just run "screen" or "tmux". You can attach to an existing session like this: $ mosh REMOTEHOST -- screen -dr Hope this helps. We may produce a better user interface for this ourselves, but probably not in mosh 1.3 (the next major version). Best regards, Keith On Sat, Jun 30, 2012 at 9:32 AM, Darren Mackay wrote: > Hi, > > I could not see this on the mailing list archives. > > It would be great if mosh could maintain server sessions, and list current > and disconnected sessions to the user when connecting, allowing the user > to select the session to reconnect to. If I kill the mosh client on my > laptop (which would happen on shutdown), the mosh server session appears > to also shutdown. > > Currently, I usually SSH to the host, then run "screen -list" and then > "screen -R xx" to connect to the desired screen session > > Cheers, > > __________ > > > Darren Mackay > DMERFC.COM PTY LTD > Enterprise Research, Forensics and Consulting > mobile: +61 412 650 306 > twitter: @darrenmackay > skype: darren_dmerfc.com > email / xmpp: darren at dmerfc.com > > > From mggr at pml.ac.uk Tue Jul 3 17:46:13 2012 From: mggr at pml.ac.uk (Mike Grant) Date: Tue, 3 Jul 2012 22:46:13 +0100 Subject: [mosh-users] mosh feature request In-Reply-To: References: Message-ID: <4FF36825.6080003@pml.ac.uk> On 07/03/2012 01:10 AM, Keith Winstein wrote: > We don't have this feature now as part of Mosh. Most users who want to +1 to the feature request, though I'm mostly suspending/hibernating my laptop these days and thus don't suffer too much, except when using multiple machines. However, mosh is a huge improvement for many other reasons (personally I love the way CTRL-C works immediately and the ease of using mosh over a terrible mobile broadband connection). > On Sat, Jun 30, 2012 at 9:32 AM, Darren Mackay wrote: >> Currently, I usually SSH to the host, then run "screen -list" and then >> "screen -R xx" to connect to the desired screen session When I used ssh more, I did similar and eventually wrote a little script (attached) to automatically reattach to a named session. It'd be nice to update this for mosh. Cheers, Mike.

Plymouth Marine Laboratory
Registered Office:
Prospect Place
The Hoe
Plymouth PL1 3DH

Website: www.pml.ac.uk
Click here for the latest PML Annual Review
Registered Charity No. 1091222
PML is a company limited by guarantee
registered in England & Wales
company number 4178503

Please think before you print.


This e-mail, its content and any file attachments are confidential.

If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail forinfo at pml.ac.uk and then delete the email without making any copies or using it in any other way.

The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated.

You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses.




-------------- next part -------------- #!/bin/sh # # Script to wrap up autossh and screen to automatically reconnect # to a named persistent screen session # # Author: mggr at pml.ac.uk # Date: 14 March 2011 # License: GPLv3 # function usage() { echo "Usage: `basename $0` [user@]host [session name]" echo echo "Start a persistent and auto-reattaching ssh+screen session on a remote host" echo echo "if no session name is specified, a new session is started" echo "if a session name is specified and exists on the remote host, it will be" echo "resumed ; otherwise it will be created" } if [ "$#" -lt "1" -o "$#" -gt "2" ] ; then usage exit 1 elif [ "$1" == "-h" -o "$1" == "--help" ] ; then usage exit 0 fi if [ "$2" == "" ] ; then echo "Starting unnamed session on $1" autossh -M 0 -t $1 "screen -e^Aa" else echo "Starting / resuming named session $2 on $1" autossh -M 0 -t $1 "export SCREENSESSION=\`screen -ls | egrep -w "[0-9]+\.$2" |cut -f2\`; if [ -z "\$SCREENSESSION" ] ; then screen -e^Aa -S $2; else screen -D -R \$SCREENSESSION ; fi" fi From reini at cpanel.net Wed Jul 18 18:28:21 2012 From: reini at cpanel.net (Reini Urban) Date: Wed, 18 Jul 2012 17:28:21 -0500 Subject: [mosh-users] cygwin now supported In-Reply-To: <50073058.5000700@cpanel.net> References: <4FE64676.7070306@t-online.de> <4FE898E1.8090401@cpanel.net> <50073058.5000700@cpanel.net> Message-ID: <50073885.6080907@cpanel.net> On 07/18/2012 04:53 PM, Reini Urban wrote: > On 06/25/2012 01:03 PM, Keith Winstein wrote: >> Hi folks, >> >> We're still looking for somebody to step up and by the Windows czar >> for Mosh -- which would include testing release candidates and >> packaging Mosh in whatever format is most convenient for Windows (or >> Cygwin) users. >> >> We had a long and pretty well-publicized release candidate series for >> Mosh 1.2. A few Cygwin people tested it and said it worked for them. >> Then we released it. The fact that people are now complaining tells me >> that we do not have a lot of testers on Cygwin. :-) >> >> If you're willing to be that person, that would be wonderful. Mosh 1.3 >> will have Peter's C++ startup code, which apparently fixes some of the >> problems. But we can't call Cygwin a supported platform until we have >> somebody who's willing to package it in a convenient format and test >> the release candidates. > > mosh is now officially included in the cygwin distro. (i.e Windows) > The official support channel is cygwin at cygwin.com > > The installer is described at http://cygwin.com/install.html > > @keith: > In short for the webpage: > Cygwin > http://cygwin.com/install.html, select mosh > Icon: http://ostatic.com/files/images/icon_cygwin_image_4.png See also http://cygwin.com/ml/cygwin-announce/2012-07/msg00017.html -- Reini From keithw at MIT.EDU Wed Jul 18 18:32:16 2012 From: keithw at MIT.EDU (Keith Winstein) Date: Wed, 18 Jul 2012 18:32:16 -0400 (EDT) Subject: [mosh-users] cygwin now added In-Reply-To: <50073058.5000700@cpanel.net> References: <4FE64676.7070306@t-online.de> <4FE898E1.8090401@cpanel.net> <50073058.5000700@cpanel.net> Message-ID: Fantastic! Thank you so much for taking the lead on this. Could somebody else please test this package and give us your report? If all is well, we will put this on the main page. Cheers, Keith On Wed, 18 Jul 2012, Reini Urban wrote: > On 06/25/2012 01:03 PM, Keith Winstein wrote: >> Hi folks, >> >> We're still looking for somebody to step up and by the Windows czar >> for Mosh -- which would include testing release candidates and >> packaging Mosh in whatever format is most convenient for Windows (or >> Cygwin) users. >> >> We had a long and pretty well-publicized release candidate series for >> Mosh 1.2. A few Cygwin people tested it and said it worked for them. >> Then we released it. The fact that people are now complaining tells me >> that we do not have a lot of testers on Cygwin. :-) >> >> If you're willing to be that person, that would be wonderful. Mosh 1.3 >> will have Peter's C++ startup code, which apparently fixes some of the >> problems. But we can't call Cygwin a supported platform until we have >> somebody who's willing to package it in a convenient format and test >> the release candidates. > > mosh is now officially included in the cygwin distro. (i.e Windows) > The official support channel is cygwin at cygwin.com > > The installer is described at http://cygwin.com/install.html > > @keith: > In short for the webpage: > Cygwin > http://cygwin.com/install.html, select mosh > Icon: http://ostatic.com/files/images/icon_cygwin_image_4.png > >> On Mon, Jun 25, 2012 at 12:59 PM, Reini Urban wrote: >>> On 06/23/2012 05:43 PM, Christoph von Stuckrad wrote: >>>> On 24.06.2012 00:30, Dan Girard wrote: >>>>> Seen here. >>>>> >>>>> And it works..... >>>> >>>> Works well! (I 'telework' with it from home, sometimes with >>>> and sometimes without vpn-tunnel, and the connections survives >>>> this change and the daily DSL-redials too) >>>> >>>> I even updated to the new 1.2.2 BUT I had to use the script >>>> (the 'mosh' perl-script) from the older version, because >>>> the new version's 'close(...pty...)' somehow disconnects >>>> the Terminal and so does not work any more. >>> >>> Thanks. >>> >>> I was tempted to maintain the official cygwin package as I fixed it with >>> the centos fixes, but I had no time to do so recently. >>> -- >>> Reini > > -- > Reini > From jhandal at lsu.edu Fri Jul 20 13:54:29 2012 From: jhandal at lsu.edu (Jeffry Handal) Date: Fri, 20 Jul 2012 12:54:29 -0500 Subject: [mosh-users] red hat linux and mosh Message-ID: <50099B55.6020500@lsu.edu> This is a great project. I really want to use it. I roam on a daily basis and sleep on the MAC kills my active connections. Any way, I am having problems locating and installing mosh on Red Hat Linux. cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.3 (Santiago) Running as root: yum install mosh Loaded plugins: rhnplugin Setting up Install Process No package mosh available. Error: Nothing to do Any help is appreciated. Regards, -- Jeffry J.Handal Convergence Specialist, M.S.E.E., P.E. University Networking and Infrastructure - LSU 200 Computing Services Building Baton Rouge, LA 70803 Office: (225)578-1966 Fax: (225)578-6400 From keithw at MIT.EDU Fri Jul 20 14:03:42 2012 From: keithw at MIT.EDU (Keith Winstein) Date: Fri, 20 Jul 2012 14:03:42 -0400 Subject: [mosh-users] red hat linux and mosh In-Reply-To: <50099B55.6020500@lsu.edu> References: <50099B55.6020500@lsu.edu> Message-ID: Hello Jeffry, Thanks for your kind words. Alex will know more, but I believe we have an RHEL package in Fedora's "EPEL" system that works out of the box. http://fedoraproject.org/wiki/EPEL (for directions) http://dl.fedoraproject.org/pub/epel/6/x86_64/repoview/mosh.html http://dl.fedoraproject.org/pub/epel/6/i386/repoview/mosh.html If necessary, you could also compile it from source (http://mosh.mit.edu). Best regards, Keith On Fri, Jul 20, 2012 at 1:54 PM, Jeffry Handal wrote: > > This is a great project. I really want to use it. I roam on a daily > basis and sleep on the MAC kills my active connections. Any way, I am > having problems locating and installing mosh on Red Hat Linux. > > cat /etc/redhat-release > Red Hat Enterprise Linux Server release 6.3 (Santiago) > > Running as root: > > yum install mosh > Loaded plugins: rhnplugin > Setting up Install Process > No package mosh available. > Error: Nothing to do > > Any help is appreciated. Regards, > > -- > Jeffry J.Handal > Convergence Specialist, M.S.E.E., P.E. > University Networking and Infrastructure - LSU > 200 Computing Services Building > Baton Rouge, LA 70803 > Office: (225)578-1966 > Fax: (225)578-6400 > > > _______________________________________________ > mosh-users mailing list > mosh-users at mit.edu > http://mailman.mit.edu/mailman/listinfo/mosh-users