gitでmoshのソースをダウンロードし、インストールする、その後iptablesを設定する。
必要なライブラリのインストール
# protocolbufのインストール
$ cd /usr/local/src/
$ wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2
$ tar xjvf protobuf-2.5.0.tar.bz2
$ cd protobuf-2.5.0
$ ./configure
$ make
$ make install
moshのインストール
$ git clone git://github.com/keithw/mosh.git
$ cd mosh
$ ./autogen.sh
$ ./configure
$ make
$ make install
ライブラリ設定
$ cat /etc/ld.so.conf.d/local.conf
/usr/local/lib
/usr/local/lib64
$ ldconfig
iptablesの設定
$ vim /etc/sysconfig/iptables
~
# 下記追記
-A INPUT -m state --state NEW -m udp -p udp --dport 60000:61000 -j ACCEPT
# iptables再起動
$ /etc/init.d/iptables restart
# 動作確認
$ /etc/init.d/iptables status | grep 60000
12 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpts:60000:61000
接続確認
$ mosh ur-hostname