Skip to content

Instantly share code, notes, and snippets.

@ii0
Forked from pythoninthegrass/install_mosh_centos7.sh
Created April 14, 2019 11:12
Show Gist options
  • Save ii0/8de9d7ed2ff2c03d64e4d92c3e1c580b to your computer and use it in GitHub Desktop.
Save ii0/8de9d7ed2ff2c03d64e4d92c3e1c580b to your computer and use it in GitHub Desktop.
Install mosh on CentOS 7
#!/usr/bin/env bash
# SOURCE: https://eligiblestore.com/blog/2017/05/02/how-to-install-mosh-on-centos/
# ensure running as root
if [[ "$(id -u)" != "0" ]]; then
exec sudo "$0" "$@"
fi
# install mosh
yum install -y epel-release
yum install -y mosh
# add firewall rules
firewall-cmd --zone=public --permanent --add-port=60000-61000/udp
firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment