Skip to content

Instantly share code, notes, and snippets.

@suhail-sullad
Last active February 2, 2019 12:06
Show Gist options
  • Save suhail-sullad/4264f63385984fc72b6d433a24cc99de to your computer and use it in GitHub Desktop.
Save suhail-sullad/4264f63385984fc72b6d433a24cc99de to your computer and use it in GitHub Desktop.
#!/bin/sh
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
sudo service sshd restart
cat > /etc/yum.repos.d/nginx.repo << EOL
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/7/\$basearch/
gpgcheck=0
enabled=1
EOL
sudo yum update -y
sudo yum install -y net-tools nginx
service nginx restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment