Skip to content

Instantly share code, notes, and snippets.

@pjvds
Last active August 29, 2015 14:13
Show Gist options
  • Save pjvds/b05c14c2eddd92902c7a to your computer and use it in GitHub Desktop.
Save pjvds/b05c14c2eddd92902c7a to your computer and use it in GitHub Desktop.
yum localinstall -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install -y mosh
echo '<?xml version="1.0" encoding="utf-8"?> <service> <short>mosh</short> <description>mobile shell server</description> <port protocol="udp" port="60000-61000"/></service>' > /etc/firewalld/services/mosh.xml
restorecon /etc/firewalld/services/mosh.xml
chmod 640 /etc/firewalld/services/mosh.xml
firewall-cmd --reload
firewall-cmd --permanent --add-service=mosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment