Skip to content

Instantly share code, notes, and snippets.

@alexmic
Created November 10, 2012 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexmic/4050955 to your computer and use it in GitHub Desktop.
Save alexmic/4050955 to your computer and use it in GitHub Desktop.
ssh daemon listen to port 443 on EC2
#!/bin/bash -ex
perl -pi -e 's/^#?Port 22$/Port 443/' /etc/ssh/sshd_config
service sshd restart || service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment