Puppet module for Mosh

Garth Kidd



9,223 latest version

1.6 quality score

Version information

  • 0.1.0 (latest)
released Apr 10th 2012

Start using this module

Tags: mosh


garthk/mosh — version 0.1.0 Apr 10th 2012

Puppet module for Mosh.


cd /etc/puppet/modules
git clone git clone git:// mosh


include mosh

The class will:

  • Perform apt-get update
  • Install python-software-properties for add-apt-repository
  • Add ppa:keithw/mosh to your apt sources via a file in /etc/apt/sources.list.d
  • Import Keith's key from
  • Perform apt-get update again
  • Install language-pack-en-base
  • Install Mosh

WARNING: You might think of installing language-pack-en-base as damage if you prefer your servers speaking another language. See "Help Wanted", below.


Smoke Testing

  • make test or make smoke to perform a simple smoke test


  • Install Mosh and Vagrant

  • Get the lucid32 box (safe even if you already have it):

      vagrant box add lucid32
  • Launch the virtual machine:

      vagrant up
      vagrant ssh
  • Once at the vagrant@mosh:~$ prompt:

      LANG=en_US.UTF-8 mosh-server
  • Note the port and key after the MOSH CONNECT line, which might be:

      MOSH CONNECT 60001 RandomLookingKey
  • Back on your local machine, run mosh-client with the correct key and port, e.g.:

      MOSH_KEY=RandomLookingKey mosh-client 60001

Help Wanted

Please get in touch if you find any way to either:

  • Enable LANG=en_US.UTF-8 without instlling language-pack-en-base
  • vagrant ssh -c "LANG=en_US.UTF-8 mosh-server" without it responding with ioctl TIOCGWINSZ: Invalid argument
  • Add an -F configfile argument to mosh, to be passed through to ssh
  • In general, get mosh working with vagrant ssh so the procedure above isn't so torturous