Run a command on a remote server

mosh

  • Mobile Shell (`mosh`) is a robust and responsive replacement for SSH.
    `mosh` persists connections to remote servers while roaming between networks.
    More information: <https://mosh.org>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mosh {{remote_host}} -- {{command -with -flags}}

click the source code to copy install mosh on any operating system with command-not-found.com