Connecting AWS EC2 instance using Java

0 votes
I am trying to connect to my EC2 instance by the Username and key pair and private key. Can that be done using Java?
Mar 28 in AWS by river
1,016 views

1 answer to this question.

0 votes
An Amazon EC2 instance is just like any other computer running with a chosen operating system (Linux, Windows). The fact that it is an EC2 instance has no impact on how you would do this activity. You can use AWS SDK to create an instance. You can use CMDER to access the instance.
answered Mar 28 by Disha
Can someone share the code for this please? I have an app deployed on EC2 instance. I need to connect to this EC2 instance and communicate with my app.

To form a connection with your EC2 instance, all you have to do is ssh into it. When you say

I need to connect to this EC2 instance and communicate with my app.

Connecting to the EC2 instance using Putty or ssh will do the job of connecting with the application.

Related Questions In AWS

0 votes
2 answers

Launching an EC2 Instance using AWS SDK Java

package com.ec2application.ec2application; import com.amazonaws.auth.AWSCredentials; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.regions.Regions; import com.amazonaws.services.ec2.AmazonEC2; import ...READ MORE

answered Jan 22 in AWS by Priyaj
• 56,920 points
667 views
0 votes
1 answer

Stopping EC2 Instance using Java AWS SDK

You can follow the following steps:- 1. Create ...READ MORE

answered Jan 22 in AWS by Priyaj
• 56,920 points
129 views
0 votes
1 answer
0 votes
0 answers
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Numpy module not found in EC2 instance

The most probable reason can be like ...READ MORE

answered Mar 28 in AWS by fuji
38 views
0 votes
1 answer

How to resize an EC2 instance?

There is no API call available to ...READ MORE

answered Mar 28 in AWS by Revlover
45 views