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
1answer
15 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: ...
-1
votes
0answers
29 views

Possibly broken symlinks on failed SCP command: No such file or directory

I am trying to extract some .pem certificates files used to encrypt my server but for some reason cannot do it using SCP I am unable to copy them over to my own machine Here are the files in the EC2 ...
0
votes
0answers
11 views

Persist server on AWS EC2 instance [duplicate]

I am able to run my node server on an EC2 instance by SSH-ing into the server and running the command node index.js when inside of the src file. The server works fine, but the issue is that I have to ...
0
votes
2answers
39 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 ...
1
vote
0answers
23 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 ...
0
votes
0answers
48 views

My Linux machine reboot everyday at 0:00 UTC but I never set that. What could cause this happen?

I have an EC2 instance and it auto reboots every day. There is a broadcast message in the terminal before rebooting, like the following: Broadcast message from root@ec2... (Sun 2021-03-28 00:01:50 UTC)...
0
votes
0answers
25 views

Create my own proxy server by using AWS Linux EC2 instance, Error: The connection has timed out

I have tried to create my own proxy server by using AWS Linux EC2 instance. I followed the steps from this article and this article. But after create the instance and configure the Tinyproxy and then ...
0
votes
0answers
19 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 ...
0
votes
0answers
17 views

FFMPEG on Ubuntu server introducing green screen in the intro for IOS devices, ex: Safari on Mac and iPad

I have been using the FFmpeg command on my local to encode the videos and get a dash file to play it. The videos processed on my local machine (Mac) play perfectly, but the same code on my EC2 ...
0
votes
1answer
16 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 ...
1
vote
1answer
12 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 ...
1
vote
1answer
58 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 ...
2
votes
1answer
37 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 ...
0
votes
2answers
33 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.
0
votes
2answers
48 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 ...
0
votes
2answers
88 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 ...
0
votes
0answers
21 views

Connecting EC2 instance with Putty. But after a certain amount the EC2 Endpoint is showing “net::ERR_CONNECTION_REFUSED”

See the image, when starting the putty its working fine but after sometime the ec2 endpoint is showing this. Although the Putty is connected with ec2 instanceThe error is showing as, message: "...
0
votes
0answers
36 views

Serving the react build with pm2 from jenkins

I'm using Jenkins as a CD tool for my react project, I have defined the steps in execute shell. I'm running my Jenkins from the EC2 instance. Now, each of the commands listed runs smoothly but the pm2 ...
1
vote
0answers
23 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 - ...
0
votes
1answer
33 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: ...
0
votes
0answers
21 views

Open Custom ports in Ec2

I am trying to open up custom port 12345 from Ec2 instance. Here are the details. When i do nmap on localhost i see the below Nmap scan report for localhost (127.0.0.1) Host is up (0.0000080s latency)....
0
votes
1answer
27 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 ...
0
votes
0answers
70 views

Windows Resource Monitor will not show Dynamic Disks

I have created a new install of Windows Server 2019. I have attached 10 SAN Disks for storage. I want to stripe these disks. As soon as I convert them to dynamic disk for striping, they disappear from ...
0
votes
0answers
23 views

Jupyter Notebook is not opening from AWS EC2 instance Putty terminal in Windows 10

Im trying to open Jupyter Notebook from AWS EC2 instance from SSH Putty terminal in Windows 10. jupyter notebook --no-browser [I 12:25:23.533 NotebookApp] Serving notebooks from local directory: /home/...
0
votes
1answer
35 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 ...
0
votes
2answers
262 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/ ...
0
votes
2answers
80 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 ...
1
vote
1answer
43 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 ...
0
votes
1answer
2k 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 ...
0
votes
0answers
11 views

How to transfer data to different virtual disk on AWS?

I have 5 trucks equipped with gps and cameras. I would like to store data in the amazon cloud. DVR has this option. How should I set it on amazon side? Is it possible to transfer data from an EC2 ...
0
votes
0answers
57 views

Can’t access AWS Elastic Beanstalk application via URL

I have two applications (let's call them A and B) running on AWS within the same VPC. I would like application A to be accessible from the public internet, while application B to be accessible only ...
0
votes
0answers
17 views

How to connect ssh via vpn?

I recently opened an OpenVPN server using AWS EC2 to connect from a client to an ssh server located in a firewall. The client and server are connected to the OpenVPN and have their own IP addresses, ...
0
votes
1answer
55 views

AWS - DescribeInstanceTypes for cache instance types

I am using DescribeInstanceTypes AWS EC2 API call to obtain the number of CPUs and memory for a given instance type. For example with an input "t3.micro" I get 1 VCPU / 1 GiB of RAM. But the ...
0
votes
1answer
80 views

SSH Connection timed out on EC2 Ubuntu

I am trying to secure my apache with Let's Encrypt on Ubuntu 18.04, I ran these commands: $ sudo add-apt-repository ppa:certbot/certbot $ sudo apt install python-certbot-apache $ sudo ufw enable $ ...
0
votes
0answers
61 views

Using Amazon EFS as a shared home directory on Linux servers

I have a use case to implement a shared /home across several Amazon EC2 machines. The idea is to put these instances behind a load balancer and let the user login (SSH) using the load balancer. Since ...
0
votes
1answer
179 views

How to create python virtualenv through userdata in an Amazon EC2 (Amazon Linux 2) instance?

How to create python virtual environment in ec2-instances? I am try to create virtual environment in ec2-instances while i am creating ec2-instances so need to imporve the code on user-data. User-data ...
0
votes
0answers
10 views

Connecting to ec2 instance after creating a Load balancer

How do I connect to an ec2 instance after creating a load balancer ? I have the below configuration set up: Two RHEL 8 ec2 instances Both the instances are inside a VPC but in two availability zones. ...
1
vote
0answers
40 views

Xubuntu GUI not loading?

I just installed xubuntu-core on my amazon-ec2 server, but I can't get it to load into a UI. When I try to use sudo startx it throws an error, while sudo service lightdm start doesn't seem to do ...
0
votes
1answer
645 views

No such file of directory during AWS EC2 Instance SSH Connection

$ cd downloads/ $ chmod 400 uindo-ssh-key.pem Response: chmod: pem: No such file or directory This issue is rising even I am having the pem file in the same directory. OS: MacOS X Termianl: bash
0
votes
1answer
51 views

rsync FROM EC2 instance

I'm trying to copy data from an EC2 instance to a remote host and am wondering why my rsync command hangs. I've generated a key-pair using ssh-keygen on the EC2 instance and then added the id_rsa.pub ...
0
votes
2answers
115 views

OpenVPN works for some ISP and not on some others

I have set up an OpenVPN access server using AWS AMI. I have a requirement that I need to whitelist an IP for some data access. So I have whitelisted an Elastic IP from AWS attached that to OpenVPN ...
1
vote
0answers
18 views

EC2 load balancer and VPC

I have set up an EC2 instance along with an application load balancer. This will be used as a web server for a react application and api. I have certified the domains via AWS certification manager. ...
-2
votes
1answer
41 views

Why is user asked for subscription to use Linux on AWS? [closed]

From my thinking long until now, Linux is always free (except Red hat, that comes with support). I'm trying to launch an instance on AWS EC2, but it is asking me to subscribe for a Linux AMI, which is ...
0
votes
0answers
171 views

Secondary interface on EC2 instance does not ping anywhere

I have an EC2 instance which has two network interfaces. The second interface cannot ping anything. If I set a static routing/DHCP the EC2 stops pinging/ssh. One interface eth0 is in a public subnet ...
0
votes
0answers
148 views

Error installing X2Go Server on Amazon Linux 2

Installing X2Go server on an Amazon Linux 2 instance lead to the error below. How to fix? [ec2-user@ip-172-31-24-85]$ sudo yum install -y x2goserver-xsession Loaded plugins: extras_suggestions, ...
0
votes
0answers
94 views

AWS EC2 - Network error: connection timed out

I am not able to SSH into my server. I am using a Linux instance and read AWS's guide for how to troubleshoot and have not had any luck. I am using Putty to SSH What have I done? Checked my inbound ...
2
votes
1answer
648 views

Windows SSH: Can't ssh into ec2 account: Permissions for 'key.pem' are too open. Can't delete permissions for “ALL APPLICATION PACKAGES”

The IP in the following picture is replaced with xs for security purposes ssh -i key.pem ec2-user@xxx.xxx.xxx.xxx @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: ...
1
vote
0answers
44 views

AWS ec2 instance with Multi user login with ssh key not work

I have a server(ubuntu16.04) in aws ec2. And I have a private key to access the server. The origin user I used called ubuntu which is generated by aws. Now my client B wants to login server to ...
1
vote
0answers
59 views

curl ftp: Cannot connect on aws instance

When I try to download a file via curl/ftp while on an AWS box, it just hangs: $ curl -vvvvv -4 --ftp-pasv ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt * Trying 205.167.25.101:21.....
0
votes
0answers
29 views

Remote headless web browser?

Is there such a thing as a remote, headless web browser? I'm running a free instance of EC2, which simply won't the graphical interface (I tried Ubuntu with some lightweight window server and was ...

1
2 3 4 5
13