Changing the Administrator Password After Connecting

Connect to the instance via session manager. In command prompt type: net user Administrator “new_password” Note: With Windows Server 2016 and later, Password never expires is disabled for the local administrator. With Windows Server 2012 R2 and earlier, Password never expires is enabled for the local administrator.

Install Jenkins on Amazon Linux EC2 Instance

1. Login to your Amazon Linux instance. 2. Become root using ‘sudo su -‘ command. 3. Update your repositories #yum update 4. Get Jenkins repository #wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo 5. Get Jenkins repository key   #rpm –import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key 6. Install Jenkins package  #yum install jenkins 7. Start Jenkins #service jenkins start 8. Start automatically at…

How do I add new user accounts with SSH access to my Amazon EC2 Linux instance?

1.    Connect to the EC2 Linux instance that you plan to add user accounts to. 2.    Run the following command sudo adduser <new_user> 3.   Switch context to new user account sudo su – <new_user> 4. Create .ssh directory mkdir .ssh 5. Limit access to the .ssh directory chmod 700 .ssh 6. Create the file…