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, 2019 in AWS by river
3,891 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, 2019 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, 2019 in AWS by Priyaj
• 58,090 points
6,329 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, 2019 in AWS by Priyaj
• 58,090 points
1,397 views
0 votes
1 answer
0 votes
0 answers

Create EC2 instance using Lambda function with Java

I have tried a lot of thing ...READ MORE

Jan 21, 2019 in AWS by Rishab
• 1,490 points
1,918 views
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,090 points
2,592 views
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, 2019 in AWS by fuji
952 views
0 votes
1 answer

How to resize an EC2 instance?

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

answered Mar 28, 2019 in AWS by Revlover
1,006 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP