Create a SSH tunnel using PuTTY in your computer, if you do not have Putty you can download it from PuTTY Download Page Click on the Security Group SECURITY_TO_AWS_EC2Ĥ.Right Click > Networking > Change Security Groups Associate the Security Group “SECURITY_TO_AWS_EC2” to the AWS EC2 instance i-036502d24caefa34a Click on “Create security group” button.ģ.The public IP (on-premises Server IP) will connect to the AWS EC2 instance using SSH.Select VPC associated to the EC2 instance (vpc-09734b495f9a644b5).Enter a description for the Security Group.Enter Security group name: SECURITY_TO_AWS_EC2.I chose the first option, so I going to create a new Security SECURITY_TO_AWS_EC2 and associate it to the EC2 instance.Ĭlick on Services > EC2 > Security Groups > Create Security Group Add a new inbound rule to give access to the port 22 to the current Security Group linked to the EC2 instance. Create a new Security group and add an new inbound rule to enable SSH.If the SSH AWS EC2 instance does not have enabled SSH, you have two options : Click on the current Security Group associated to the instance to verify if SSH is enabled (must exist an Inbound rule for the port 22). Enable SSH on the EC2 instance (i-036502d24caefa34a)Ī. I will configure a SSH Tunnel to connect to a Oracle 12c database located in a EC2 instance that uses the default port 1521, If you wish you can configure other port like 5432 (default port for PostgreSQL) or 3306 (default port for MySQL)ġ. In this post I will show you how configure a SSH Tunnel using Putty to connect to a AWS EC2 Instance with CentOS release 6.9 running Oracle 12c
0 Comments
Leave a Reply. |