Questions tagged [amazon-ec2]

Amazon EC2 (Elastic Compute Cloud) is a web service that allows users to rent virtual computing capacity on which they can run their applications. Web service questions are on topic here only if the question is about the operating system or using a PC application hosted there. Otherwise, other sites on the network may be more appropriate

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

How to configure an IPv6 tunnel on AWS?

I'm running openvpn on a dual-stack AWS EC2 instance (Ubuntu 18) in an AWS VPC. Connecting to the VPN software and tunneling IPv6 seems to work fine; I can bring up a VPN link and ping6 around the VPN ...
user avatar
0 votes
0 answers
14 views

AWS EC2 windows - secure encryption at rest with password at boot

I'm looking for a way to use encryption at rest at aws for windows instances, but I want the instance to be protected from a hacked admin account (although unlikely due to 2fa) or aws itself (yes, ...
user avatar
0 votes
0 answers
249 views

Yum update Could not contact any CDS load balancers Amazon EC2

In my scenario , for some reason yum has stopped working in my Amazon EC2 instance, located in the us east -1 region. There seems to be something wrong with the path of the repo metadata, is this ...
user avatar
0 votes
1 answer
101 views

bitcoin-cli testnet : Could not connect to the server 127.0.0.1:8332

I've installed bitcoin-cli from here I run the bitcoin core on Ubuntu 20.04 (AWS EC2). mac-os also experiences similar problems. Ubuntu 20.04 screen capture for the error messages The commands I've ...
user avatar
0 votes
1 answer
34 views

AWS Linux Stuck due to screen command - blank screen - how to get out

I am using AWS Linux (Amazon Linux 2 AMI) and I am totally stuck after using the basic "screen" command. I was following an installation guide and one of the steps was to use just the ...
user avatar
0 votes
0 answers
24 views

How to close or recover a hanging connection to amazon-ec2

I was using aws cli to connect to an EC2 instance. I had network issues and the connection broke. I was left with a hanging connection, both on my side (the cli wouldn't take any keystroke) and on the ...
user avatar
0 votes
1 answer
90 views

Can't detach security group from ENI and remove VPC

I created a Cloud Formation stack for Kubernetes cluster and then deleted it and noticed that the VPC and ENI were left undeleted so wanted to remove the VPC but it wouldn't let me because an ENI is ...
user avatar
  • 101
0 votes
0 answers
42 views

Not able to open ubuntu desktop through novnc on web browser

I followed the instructions here. After running this line of code $ sudo websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/novnc.pem 6080 localhost:5901 I went to the browser and typed out https:...
user avatar
1 vote
0 answers
40 views

Trying to connect to AWS EC2 instance and getting session denied (publickey)?

I use Windows 10 and can do this successfully in PowerShell: ssh -i "bla.pem" ubuntu@blabla.eu-west-2.compute.amazonaws.com However, when I try to do this in VSC Remote Explorer I get: [17:...
user avatar
  • 155
0 votes
2 answers
62 views

Unable to ssh into ec2 instance with .pem keypair

I created a new temporary ec2 instance (using a snapshot of my original ec2 instance) ang generated a mykeypair.pem file to use as a keypair that I hoped would allow me to connect to my virtual ...
user avatar
  • 103
0 votes
0 answers
66 views

Not able to ping AWS ec2 IPv6 address

i have t3.small EC2 instance i have associated ipv6 address to it but not able to ping the address . 1.able to ping IPv4 of same instance 2.for reference i have used - https://docs.aws.amazon.com/vpc/...
user avatar
1 vote
1 answer
131 views

"unable to open file" when trying to use PPK key file converted from EC2 PEM key

Unable to connect to EC2 from Linux mint 20. Screen shots for the steps followed attached In PuTTY I followed the steps step 1 : to convert from .pek to .ppk I followed the link pek-ppk sudo puttygen ...
user avatar
  • 113
0 votes
0 answers
121 views

AWS EC2 ssh root okay, ec2-user permission denied

I have an EC2 machine with Amazon Linux 2 system and everything works fine for the past month. However, today when I tried to ssh onto the EC2 machine in the usual way, I got the following issue: ssh -...
user avatar
  • 113
0 votes
0 answers
15 views

AWS ec2 Instance- Record Server Desktop Without Connection

I set up an application which uses ffmpeg to record a desktop on an Amazon AWS EC2 instance having Windows Server 2012 R2 installed. It records the desktop and puts the result into a file. This works ...
user avatar
-2 votes
1 answer
55 views

Jenkins is not opening in browser only in my laptop? [closed]

From two days I am facing this problem. Till 2 days before Jenkins.... worked without any error in my laptop. My Jenkins server is in AWS EC2 (Amazon Linux). All my deployments are also there in ...
user avatar
0 votes
1 answer
41 views

Wants to run two webserver on tomcat at port 8080 and 7070 without opening this port in security group of EC2

I am running two webserver on tomcat version 9 using port 8080 and 7070 on same EC2 . 1st tomcat : <Connector port="7070" protocol="HTTP/1.1" connectionTimeout=&...
user avatar
1 vote
3 answers
292 views

how to clean up /root folder in EC2 linux

One of my AWS EC2 Instance is occupying over 222 GB. But surprisingly when I check inside the /root folder, I just found one file which is of 5MB in size. I am not sure how to clear the disk space and ...
user avatar
  • 11
0 votes
0 answers
67 views

How to ssh jump with reverse ssh connection

I have three computers: my home laptop, the remote Amazon Ubuntu server and a remote Google Linux VM. From my home laptop I first connected to Amazon server with IP 11.111.111.1 and then created a ...
user avatar
0 votes
0 answers
21 views

How to pass traffic from proxy server as default?

Basically, I have 2 EC2 server. (1) EC2 server with HTTP_PROXY / HTTPS_PROXY="SquidserverIP:3128" in environment variable. (2) EC2 server with squid proxy configuration. Now, How can i pass ...
user avatar
1 vote
1 answer
81 views

Given a virtual disk, get the pool it belongs to

I have this monstrosity: Get-Volume | ForEach-Object { $VolObj = $_ $ParObj = Get-Partition | Where-Object { $_.AccessPaths -contains $VolObj.Path } $DiskObj = Get-Disk | Where-Object { $_....
user avatar
  • 117
0 votes
1 answer
37 views

SSH into AWS EC2 without copy/pasting DNS each time

Following generation of a PEM file, and starting the instance, logging in requires copying the public DNS each time you wish to SSH in (as shown in AWS docs): ssh -i /path/my-key-pair.pem my-instance-...
user avatar
0 votes
0 answers
31 views

Issue connecting to EC2 -- server refused the key

I need to deploy my wordpress website on EC2 instance. I have created the elastic ip address. When I connect using putty it gives an error server refused the key. I have checked the .ppk file which is ...
user avatar
0 votes
0 answers
112 views

Not able to allow nginx to run on different port 3000 without opening the 3000 port in security group for everyone in EC2

I am trying to run nginx for multiple server such that it listen port 80 and then revert traffic to 3000 for webserver1 and 3001 for webserver2. I am able to achieve this process but issue is I need ...
user avatar
0 votes
1 answer
176 views

Enabling HTTPS on EC2 Instance

I have an elastic public IP for my EC2 instance. I have an Nginx server running on it (and nodejs as a backend server). I'd like to enable HTTPS access to my server. My questions: Can I create an SSL ...
user avatar
  • 1
0 votes
1 answer
15 views

How do I expose my dockerized container outside of my EC2 instance?

How do I expose my docker container from outside of my EC2 instance? version: '3.1' services: php: image: leonard/${CPROJECT}.php:tg1 build: context: . dockerfile: './docker/php/Dockerfile' ...
user avatar
  • 1
1 vote
1 answer
65 views

Is there a way of adding an Amazon EC2 Instance onto Finder?

Hey is it possible to virtually mount an EC2 Instance in finder? I'm trying to eliminate the use of an external SFTP client (I use Terminus at the moment) and I was wondering if it was possible if I ...
user avatar
0 votes
2 answers
1k views

Malicious request in log

I am receiving malicious request therefore i seek your help i log page urls visited and some of them are like http://example.com/?a=fetch&content=<php>die(@md5(HelloThinkCMF))</php> ...
user avatar
  • 103
0 votes
0 answers
93 views

Fail to connect to EC2 instance from the root user's shell - Permission denied (publickey) - Windows 10

I can connect to EC2 instance from my computer with SSH as a user tomas : tomas@machine:~$ ssh ubuntu@ec2-3-91-55-214.compute-1.amazonaws.com Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1045-aws ...
user avatar
  • 165
0 votes
1 answer
25 views

How to automatically shutdown *any* idle EC2 instances automatically?

I am trying to build something that will automatically shutdown any idle EC2 instances. I looked up online and the CloudWatch solution only works on a per-instance level, meaning you have to add one ...
user avatar
  • 113
1 vote
1 answer
41 views

Cannot allow user to connect after allowing his IP through INBOUND rules

I whitelisted an IP address on EC2 and the site is still prompting username and password, because it's setup so that the browser request the username and password before the page even loads. I am not ...
user avatar
  • 113
0 votes
0 answers
17 views

Will a running process be terminated if my computer shuts down while connected to an EC2 instance via session manager?

I am using Windows and connecting to a Linux EC2 instance via Session Manager. The instance has an S3 bucket mounted, I am running a heavy decompression operation which writes output to the S3 bucket, ...
user avatar
  • 3
2 votes
1 answer
2k views

AWS EC2 Disable disableApiTermination from the console

I'm new to AWS, I created an EC2 instance and I want to terminate it. However, when I created it, I set disableApiTermination to True, and now, when I'm trying to terminate it, I receive this message: ...
user avatar
  • 125
0 votes
2 answers
99 views

How can "PermitRootLogin no" add security

The topic is already discussed here, but I don't fully understand the answers I am trying to meet some good practice security criteria while setting up a VPS. I am using Ubuntu18 on AWS EC2 which I ...
user avatar
  • 1
1 vote
0 answers
225 views

How to set the default outbound interface in Debian when using multihomed interfaces on EC2

In Debian 10 with an Amazon EC2 AMI (as of March 31, 2021), the /etc/network/interfaces file looks like this: # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d ...
user avatar
  • 133
0 votes
0 answers
76 views

Do I need to separate /var and /tmp from the root partition on AWS EC2?

A result of an audit check on the Amazon Linux AMI gave a number of recommendations on the file structure, for example the need to have the root and /var and /tmp on different partitions. Is this ...
user avatar
  • 141
0 votes
1 answer
21 views

Why can I not communicate through VPC peering connection to VPC in another account?

I have two amazon AWS accounts, a paid one that hosts public webservers (called "paid" below), and a free tier account (called "free" below). Each has a couple of EC2 instances ...
user avatar
  • 179
1 vote
1 answer
18 views

AWS VPC: Trying to understand how I got all these network ACL rules

Have had a website running on AWS EC2 instances since 2011. Simple configuration using security groups to treat one instance running nginx as a bastion server allowing HTTP and HTTPS access from ...
user avatar
  • 179
1 vote
1 answer
71 views

99 % CPU taken up by “ps”

I have an EC2 t2.micro (Linux AMI) instance. Since a few days I noticed that RAM is being 99% used by "ps" . When that happens : $ free -m total used free ...
user avatar
2 votes
1 answer
62 views

How to fix infinite bash loop (bashrc + bash_profile) when ssh-ing into a server?

I mistakenly have source .bash_profile in the bashrc file and vice versa. Now when I tried to ssh into the machine (ec2), it will stuck at loading bash and get connection closed in a second. Is there ...
user avatar
  • 143
0 votes
2 answers
89 views

How to ssh to EC2 *without* having to specify the .pem file?

There must be some easier way than the documented ssh -i my.pem user@ip-addr, by putting the pem file in ~/.ssh and ssh knowing to use my.pem based on user@ip-addr, but I can't figure out how.
user avatar
  • 169
0 votes
2 answers
138 views

Where did all of my memory go on my Linux box?

I'm running Amazon Linux on a machine with 16GB. I have two java processes that are maxed out at 2GB each. One process that grabs 2GB upon startup and another that can grow up to 2GB. The other ...
user avatar
0 votes
2 answers
96 views

I am trying to transfer a file from oracle VirtualBox in my computer to AWS EC2 instance

I am trying to transfer a file from oracle VirtualBox in my computer to AWS EC2 instance used command - scp /progs/add.sh root@18.221.48.189:/file1 where - 18.221.48.189 is public IP of AWS instance ...
user avatar
1 vote
0 answers
90 views

AWS EC2 Apache port 80 closed intermittently

I am having website which is running on AWS EC2 Ubuntu - Apache2 - PHP. The website was working pretty fine and all of sudden it became unresponsive. Following are things I have checked. Apache - ...
user avatar
0 votes
1 answer
345 views

PuTTY cannot open the ppk generated by conversion from PEM using command-line Linux PuTTYgen

Local system: Fedora Remote system: AWS AMI Linux SSH client: putty Problem: Putty using pem to access AWS AMI will result on error. Error message: OpenSSH SSH-2 private key (old PEM format) Solution: ...
user avatar
  • 21
0 votes
1 answer
43 views

Do you need restrict by IP the RDP port?

I have my Amazon server for 4+ years suddenly I couldn't connect by Remote Desktop. Customer Service said I need to restrict RDP port to just the connecting PC. I did add the firewall rule and start ...
user avatar
1 vote
1 answer
311 views

Assigning subnet IPs to OpenVPN clients in AWS

I have a working OpenVPN server installed on the EC2 instance inside my VPC. It's used to allow remote users to access services inside private subnet. It's been a sufficient solution so far but ...
user avatar
  • 111
0 votes
2 answers
710 views

chmod/chown/mkdir: Operation not permitted as root

I get Operation not permitted for root user on one server but not on the other "identical" server. Running on Amazon Linux 1. Server 1: [root@preprod-1 ]# chown root:root /s3mnt/outliers/ ...
user avatar
0 votes
2 answers
184 views

How to let jenkins manage availability of windows ec2 node?

I have a jenkins ubuntu server and several windows nodes running on ec2. I'd like for the server to turn the windows boxes on and off as they're needed. I think that means using the "launch ...
user avatar
  • 30
1 vote
1 answer
417 views

Configuring what happens when you start an AWS EC2 instance (Windows Server 2019)

I've set up an EC2 instance for cloud gaming. The instance runs Windows Server 2019 and everything works well, except that every time I start the instance I have to RDP in to start Parsec, the program ...
user avatar
  • 117
1 vote
1 answer
3k views

How to properly configure xstartup file for TightVNC with Ubuntu 20.04 LTS GNOME environment

I'm trying to configure Gnome-Desktop on Ubuntu 20.04 LTS. I'm able to view the desktop with Real VNC Viewer, Apple VNC Screen Share and other VNC viewers, I can run my applications, the desktop ...
user avatar
  • 119

1
2 3 4 5
13