Skip to content

Instantly share code, notes, and snippets.

@gizmotronic
Last active June 8, 2019 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gizmotronic/109f68615c85146f4ff24fd73951dc5e to your computer and use it in GitHub Desktop.
Save gizmotronic/109f68615c85146f4ff24fd73951dc5e to your computer and use it in GitHub Desktop.
RancherOS cloud-config snippet for alternate SSH port
runcmd:
- [ sed, -i, -e, "/^#*[\\s]*Port\\s.*/s//Port 1022/", /etc/ssh/sshd_config ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment