- To connect to ec2 instance from putty we need to convert .pem file to .ppk
- Start puttygen.exe
- Type of key to gen- te: RSA
- Click "load" and sel- the .pem file
- Click "save private key", give same name as .pem file
- Category> Session
- Host name : ec2-user@public_dns_name or ec2-user@elastic ip address
- ec2-user: user name for Amazon Linux AMI
- ubuntu: user name for Amazon Ubuntu AMI
- Port: 22
- Connection type: SSH
- Host name : ec2-user@public_dns_name or ec2-user@elastic ip address
- Category> Connection> SSH> Auth
- Browse .ppk file
- sudo yum update [for linunx AMI]
- Select SFTP protocol
- Host Name is public ip; port number is 22
- Use name is ec2-user
- Advanced > SSH > authentication > private key file > .ppk file