Monday, August 31, 2020

How To Configure Mosh with tmux for non-stop connectivity

 

 A) Install mosh in your remote machine.

sudo apt-get install mosh
sudo apt-get install protobuf-compiler #(This is a dependency)


 B) Add the following to your .bashrc local machine

alias mosh='mosh --server=mosh-server'

 

C) Add the .tmux.conf file to your remote machine with contents below.

        new-session
        set -g history-limit 30000
        set -g mouse on

start a mosh sesssion using the command
 mosh cloud@10.29.23.167 -- tmux a

 

To Copy Paste using mouse 

hold Option key and then select the text cmd+c 

No comments:

Post a Comment