11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

moshのインストール (CentOS6.4)

Last updated at Posted at 2013-08-09

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
11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?