Mosh

Mosh is a tool used to connect from a client computer to a server over the Internet, to run a remote terminal. Mosh is similar to SSH, with additional features meant to improve usability for mobile users.

Installing

In your server:

# pkg_add mosh

In your client:

# pkg_add mosh

That's it.

How to use

Connect just like how you connect with ssh command.

$ mosh username@yourhost.com

Troubleshooting

  1. Can't Scroll
    Use tmux / screen
  2. Could not connect / Firewalled
    Make sure that your server allow UDP port from range 60000-61000.