Today we will learn how to provide root permission to your SSH user. So, We can provide SSH user root permission either move them in root user group or We can add simple line in sudoers file to provide root permission. Lets use the first method. Provide ROOT permission to this user by move it to root user. 1usermod -aG …
Read MoreToday I will show you, how can you create you private and public key using ssh-keygen command. Connect to you Linux system. Open Linux terminal. Run below command to generate keys. 1ssh-keygen -t rsa -b 2048 Enter the name of the key and press Enter Now private and public key has been generated. Now you can use those …
Read MoreToday I will show you, how can you get SSH private key from AWS console and convert that key into public key. So, that you can use that key for create a SSH user. So, First lets with downloading a key from AWS Console. To create your key pair. Please follow the below steps: Open the Amazon EC2 console at …
Read MoreToday we will create new user that can connect to my Linux instance/Server using SSH key Authentication method. When you launches a Linux server, a default system user account created with administrative access to the server. If you wants multiple users access to the instance, it's a security best practice to create a …
Read MoreToday lets configured your powershell script in widows scheduler. Lets start the process: Step 1: Open "Task Scheduler" : Step 2: Click on "Create Task" : Step 3: In general, write "scheduler task Name" and enter "Administrator" user: Step 4: In trigger, enter timing in which you want to run the script: Step 5: In …
Read MoreToday we will create a Powershell Script, which will delete your old files. You can also configure a scheduler which can delete the files automatically. Let's start the scripting: Step 1: Create a variable to get the old date by getting current date and subtracting the retention days: 1$cutoffDate = …
Read MoreToday, we faced a problem where our client application was not working because of the database connection issue. I have checked and found that their credentials were incorrect. As per the client, this was that same credentials which their application was using. So, To resolve the problem, we decided to reset the root …
Read MoreToday we will learn, how to create AWS Cloudformation script. So in this script, we will create a VPC and two subnets. One public subnet and one private subnet. First, we have to define the script Cloudformation template format version. 1{ 2 "AWSTemplateFormatVersion": "2010-09-09", 3 "Description" : "Create 8 private …
Read MoreSavings Plans is a new and flexible discount model, which will provide the same discounts as Reserved Instances, in exchange for a commitment to use a specific amount (measured in dollars per hour) of compute over a one or three year period. Savings Plans are available in all AWS regions except China. You can start …
Read MoreToday we will learn, How to extend your AWS EC2 EBS volume disk without Downtime. If you are using Linux you can click on this link and follow the steps. So, Once you increases the size of an EBS volume from the AWS console, use the Windows Disk Management utility to extend the disk size to the new size of the volume. …
Read More