EC2
-
Components of EC2
- CPU and RAM
- Instance Size: We select cpu count and RAM size
- Instance Family: Hardware specifications (Intel/AMD)
- Purpose: Choose the best size by identifying purpose
- Storage (Virtual Disk = Elastic Block Storage)
- Speed and Size: EBS Volume type and Size
- Where it should exist: EBS volume and Instance Storage
- OS: Amazon Machine Image
-
Remote Connection:
- Windows:
- RDP (Remote Desktop Protocol): RDP helps connecting windows servers using ipaddress & username, password
- Linux:
- SSH (Secure Shell): SSH helps connection Linux Servers
- Authentication Types:
- Password Based Authentication: In AWS Password Based Authentication for ec2 instances is disble by default.
- Key Based Authentication: Key Based Authentication
- Windows:
- CPU and RAM
- Key Based Authentication:
- AWS Uses Private Key and Public Key based on RSA and ED
- Private key can be downloaded in two formats
- pem (used by any ssh client)
- ppk (used by putty based clients)
- Lets create a key pair
- Lets Create a Windows 2019 Server
- Now lets connect to the remote machine
-
To connect to remote desktop open run command
mstsc -v <public ip>
- For Cleanup: Terminate instance.