5
4

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.

SSH の代替として Mosh を使う

Posted at

Remote 接続に Mosh を使用すると、SSH と比べて体感速度が速くなると言われています。

Ubuntu Server に Mosh を Install する

Terminal

sudo add-apt-repository ppa:keithw/mosh

sudo apt-get update && sudo apt-get install -y mosh

Mac Client に Mosh を Install する

Terminal

brew install mobile-shell

必要な初期設定と接続

Terminal

# Server 側
sudo ufw allow 60000:61000/udp

# Client 側
mosh [host]

接続できない場合の対処例

Terminal

# Server
mosh-server

# Client
mosh remotehost --server="LANG=$LANG mosh-server"

echo "Port XXXX" > ~/.ssh/config

mosh username@IP Address

( XXXX には、SSH で使っている Port Number でも入れてください)

参考URL

5
4
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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?