This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Scalable Wordpress instance", | |
"Parameters": { | |
"InstanceType": { | |
"Type": "String", | |
"Description": "Instance type", | |
"Default": "t2.medium", | |
"AllowedValues": [ "t2.medium", "t2.large" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script adds a new user to the remote server , adds it to sudoers list and enables passwordless login | |
# follow on my blog https://www.coderew.com/computers/ssh-add-user-remotely-script/ | |
read -p "Enter your Server IP:" serverIP #get server IP address | |
read -p "Enter a new username:" newusername #username for the new user | |
read -s -p "Enter the password for $newusername:" password #password | |
printf "\nEnter the root password of the server when prompted\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# SSH Remote Host Auto Login Script | |
# Author: Daniel Gibbs | |
# Website: http://danielgibbs.co.uk | |
# Version: 100914 | |
clear | |
echo "=================================" | |
echo "SSH Auto Login" | |
echo "=================================" | |
echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ############################################################################# | |
# Create new SSH user (Ubuntu) | |
# I use this script whenever I need to add a new SSH user to an Ubuntu machine. | |
# Usage: | |
# 1) Download the "raw" with - wget -O createNewSSHUser.sh https://gist.github.com/raw/4223476 | |
# 2) Make it executable with - chmod a+x createNewSSHUser.sh | |
# 3) Uncomment the last line and edit the user & pwd values | |
# 4) Execute it with : sudo ./createNewSSHUser.sh |