Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) is a cloud-based computing platform.
478
questions
1
vote
2
answers
84
views
getting permission denied when ssh to an instance from ubuntu 23.04 wsl
I recently updated in Ubuntu 23.04 wsl. I use the same certificate for both a very old 2017 aws linux instance and also for new aws linux instance. I am not able to ssh to the old 2017 aws linux ...
0
votes
1
answer
82
views
Docker doesn't seem to be running. Did you start it?
I try to install DataHub together with Docker on a t2.large AWS EC2 Instance running Ubuntu.
I am following a installation guide for Docker and a guide for DataHub.
The tests proposed by the guides ...
0
votes
0
answers
39
views
How do I restart a web server used by WordPress running on AWS EC2
I have inherited ownership of an AWS EC2 instance running WordPress.
I am unfamiliar with Unix.
I do not know how WordPress was installed.
I do not know how to check what web server is running.
...
0
votes
1
answer
32
views
How I can restore/reset the /etc/fstab on amazon AWS EC-2 ubuntu 22.04?
In an amazon EC-2 instance I accidentally overwrote the /etc/fstab while I was adding a setting fro swapfile:
echo "/swapfile none swap sw 0 0" | sudo tee /etc/fstab
But I ...
0
votes
0
answers
25
views
How APT finds a package from a repository? [duplicate]
I am currently using an AWS ec2 instance ubuntu 20.04.
When i am checking the /etc/apt/sources.list file, i can see the the repositories in the below format,
deb http://us-east-1.ec2.archive.ubuntu....
0
votes
0
answers
44
views
How can I pass the FQDN hostname to systemd?
I have an Ubuntu 20.04 system in AWS. The %H flag in systemd is replaced with the hostname as expected, but I need a way to capture the output of hostname --fqdn.
%H outputs ip-10-0-0-188 on my ...
0
votes
0
answers
43
views
create and configure SSL certificate not vaild certificate https red error
create SSL certificate and configure apache2 server in AWS EC2 instance
Create SSL using openssl
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/my-domain.key -out /...
1
vote
0
answers
89
views
How relevant is Grub password protection in the cloud?
I see a recommendation from a vulnerability scanning tool running in AWS EC2, targeting an instance running Ubuntu 20.04:
GRUB bootloader is not password protected. An attacker can use the GRUB ...
0
votes
0
answers
102
views
Unable to run most apt commands — sosreport and cloud-init syntax errors are vexxing me
I am trying to upgrade our 18.04 server to 20.x. The server is on AWS and it is an EC2 instance.
I can run apt update, but any apt command that tries to upgrade or install packages results in the ...
0
votes
0
answers
126
views
Issue with Ubuntu 22.04.01 on AWS EC2 Instance
While trying to run
sudo apt update
but keep getting the following error:
W: Failed to fetch http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/jammy/InRelease Connection failed [IP: 52.15.159....
1
vote
1
answer
101
views
systemd service won't boot at start
I'm running a service on a EC2 instance that should boot at start and whenever the script associated fails.
So I wrote the service like this:
[Unit]
Description=Test
[Service]
User=ubuntu
Type=simple
...
0
votes
0
answers
90
views
need help with AWS EC2 tightvnc GRAY SCREEN ubuntu 22.04
hi guys seems i am missing something no matter what i do i just get gray screen on vnc
i tried
#!/bin/sh
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && ...
0
votes
0
answers
170
views
Ubuntu 22.04.1 runs slowly compared to 20.04 on EWS EC2
Edit: It would appear the culprit is libcrypto.so.3;
Updated question:
Is LibSSL3 slower in general?
Is LibSS33 just slower for legacy providers? or
Is this likely a PHP interface issue?
We have had ...
0
votes
0
answers
81
views
IPv6 does not work and "no link-local IPv6 address for ens5"
When I try to ping6 ipv6.google.com I get ping6: connect: Network is unreachable. When restarting my network interface ens5 it shows a no link-local IPv6 address for ens5 message. I am pretty sure ...
0
votes
0
answers
60
views
Download from multiple backup apt repository in ubuntu
I have AWS auto scaling group which scales out in peak hours. I'm facing unhealthy instances due to do AWS's apt servers being unresponsive sometimes.
Err:68 http://ap-northeast-1.ec2.archive.ubuntu....
0
votes
3
answers
236
views
how to get the ip of my Ubuntu instance in AWS
How can I see the public IP address assigned to an EC2 instance, from within (i.e. after connecting) the EC2 instance? I can see the public IP address that is assigned to it, simply by looking in the ...
0
votes
0
answers
8
views
Merge To Hard drives EBS and Throughput Optimized HDD (st1) Ubuntu
I have a dedicated instance in AWS so the root drive is gp2 8GB and Throughput Optimized HDD (st1) 450GB,
so I need to merge it or run it as 1 hard drive.
the storage is as follows:
Disk /dev/nvme0n1: ...
0
votes
1
answer
223
views
How to setup port to subdomain in AWS?
I have a domain (e.g. example.com) registered with godaddy.com and use AWS for hosting. Nameserver on Godaddy later added to AWS
I have an ubuntu (t2.medium) apache server installed. My project in ...
1
vote
0
answers
299
views
Unable to apt-get update on IPv6-only ubuntu server
Whenever I try to apt-get update on my IPv6-only ubuntu server, the command fails with connect (101: Network is unreachable) Cannot initiate the connection to us-east-2.ec2.archive.ubuntu.com:80 (52....
0
votes
1
answer
895
views
SSH connection fails after upgrade from 20.04 to 22.04
A team member just upgraded our AWS EC2 instance from 20.04 LTS to 22.04 LTS, and ssh connections broke as a result. Now when I try to open a session (in MobaXterm) I get:
Server refused our key
No ...
0
votes
0
answers
21
views
What should MaxRequestWorker Value for t3.xlarge ec2 instance?
Because of hundreds of requests per minute our server was crashing frequently. Then I came to know that I have to increase MaxRequestWorker value. I increased value from 200 to 700 and now it is ...
0
votes
1
answer
348
views
Ubuntu 22.04 AWS import initramfs/initrd issue
I'm working on a multi-cloud deployment for Ubuntu 22.04 and I haven't done this since 16.04, I've got a raw image created with QEMU, and I'm trying to get it into AWS, the import is telling me:
&...
0
votes
0
answers
112
views
How to configure a crontab to rsync via ssh on AWS using a pem file
I have two AWS EC2 server. One is production and the other is a replica.
This command works from the command line.
rsync -razv -e "ssh -i /home/ubuntu/migration/healthy.pem" /home/ubuntu/...
0
votes
0
answers
112
views
Need help getting Ubuntu Desktop and tightvncserver to work on EC2
I'm hosting Ubuntu Desktop on an EC2 instance and trying to connect to it from my Mac. To do this, I followed the instructions detailed in this tutorial for how to run Ubuntu Desktop on an EC2 ...
0
votes
1
answer
386
views
Proper way to shutdown an Ubuntu AWS EC2 instance?
Sometimes I need to shutdown an Ubuntu AWS EC2 instance so my company does not get changed for the time if I'm not going to use it for a few days. I'm not sure what is the proper or ideal way to do ...
0
votes
1
answer
200
views
Cannot SSH into AWS EC2 Instance, Blinking Cursor
I cannot ssh into an EC2 instance I have created in AWS console.
I just get blinking cursor when I typed this command:
ssh -i "ansible.pem" ubuntu@ec2-52-34-81-7.us-west-2.compute.amazonaws....
1
vote
0
answers
309
views
Amazon Workspaces on ubuntu: copy / paste issue between multiple monitors
I am using Amazon workspaces on a Linux client: ubuntu.
The Amazon workspaces are Windows 10.
My issue is that I cannot copy / past anything across multiple monitors. I can copy and paste between the ...
0
votes
1
answer
154
views
Root Directory Keeps Changing Permissions (EC2), 403 NGINX Error
I am running a flask application using gunicorn/nginx. One of the issues I'm running into is that the permissions of my EC2 instance's root directory keeps changing permissions to drwxr-x--- which ...
0
votes
0
answers
93
views
Why can't I use any docker commands inside Jenkins Docker container?
In my EC2 instance, I created a docker image from a running Jenkins container to get the existing jobs to the new image. Then I ran the new image with a different port mapping. Then when I enter ...
0
votes
1
answer
183
views
How to shrink the volume of an ubuntu ec2 instance on aws
I have an issue trying to shrink a 5TB EBS volume that runs ubuntu on AWS to a 200GB EBS volume. I created the snapshot and use it to create a new volume. Create a new volume of the size I want to use....
0
votes
0
answers
41
views
How to deploy application from Jenkins in Linux Ec2 instance to Windows Ec2 Instance?
I have a requirement to deploy applications from Jenkins in Linux to Windows Ec2 instance. I'm able to deploy it in Linux instances using SSH and SCP but to deploy it in windows, I don't know how to ...
5
votes
3
answers
6k
views
For new AWS instance, "Using username "ubuntu". Server refused our key."
I have been using Amazon EC2 instances in AWS. I have been successful connecting with WinSCP to a variety of instances, including Amazon Linux, Rocky Linux, SUSE, and CentOS 6, 7, and 8. All of ...
1
vote
0
answers
88
views
How to connect EC2 instance to Netbeans remote server?
I am trying to connect my AWS ec2 ubuntu instance to the Netbeans.
While I am trying to connect with Netbeans Remote server then, It is showing the following error message. I have searched all the ...
0
votes
0
answers
1k
views
Permission Denied (publickey) when using SSH
I have Ubuntu 20.04 running in VirtualBox as my control node. I am using AWS EC2 instances (Ubuntu) for my remote servers.
Every time I try to ssh into one of my EC2 instances I get " Permission ...
0
votes
0
answers
273
views
RDP on EC2 works until logging out and back in RDP, SSH works without issue - must reboot to get RDP to work again
I have a Ubuntu 18.x that I have installed XRDP on and GNOME so I can configure Security Onion 2 for my org. This is a VM running in AWS on a EC2. I have whitelisted my public IP for SSH and RDP in ...
1
vote
0
answers
378
views
AWS EC2 Ubuntu 20.04.4 LTS STARTUP taking too long because of cloud-init / url_helper.py issue
Everytime I restart my server I get this cloud-init related error that slows the startup by 5 minutes.
Where this error comes from and how can I fix this?
[ 5.458859] cloud-init[869]: Cloud-init v. ...
0
votes
1
answer
836
views
Ubuntu 20.04 Terminal Using the Screen Command
I've been using the "screen" linux command on an AWS EC2 instance to keep code running 24/7. Recently I tried the command in my ubuntu terminal and found that if I make a screen, run a ...
0
votes
1
answer
1k
views
Help with adding secondary IPs to Netplan on Ubuntu 20.04 AWS EC2 instance
I have a Ubuntu 20.04 ec2 instance. I need to add three more persistent private IP addresses in addition to the primary. I'm familiar with the old way of doing this, but I have no experience with ...
2
votes
1
answer
125
views
Unable to change permissions inside AWS Docker ubuntu instance
I'm trying to run a discord bot in an AWS ubuntu docker container.
My Dockerfile looks like this:
FROM ubuntu
ADD hydrabot.exe /
ADD bot_config.json /
ADD client_secrets.json /
ADD Cyberbit.ttf /
ADD ...
0
votes
0
answers
577
views
Cloud-init doesn't run as first boot for instance launched from an AMI created from another instance
We configure AWS EC2 instances (Ubuntu 20.04) with cloud-init using user-data scripts. We're noticing the user-data scripts don't execute if they are run on instance which is launched from a custom ...
0
votes
0
answers
235
views
pointing sub domain to AWS EC2 server, website not displaying
The main domain is pointed on other AWS EC2 instance and due to the subdomain is a staging site so I launch another AWS EC2 instance, installed Apache, added the subdomain vhost to default .conf at /...
0
votes
0
answers
105
views
CRON doesn't run
I had to reinstall a whole stack on an EC2 instance because a colleague mess up the previous one (not able to SSH anymore).
Long Story Short: New EC2 is running.
We have to run 2 jobs by a CRON job. ...
1
vote
0
answers
1k
views
Unable to update ubuntu 20.04 on EC2 owing to timeout [duplicate]
I've got what could either be a problem with an EC2 instance or with ubuntu 20.04.
When I run sudo apt-get update I eventually get:
Failed to fetch http://eu-west-
2.ec2.archive.ubuntu.com/ubuntu/...
0
votes
1
answer
1k
views
How do I upgrade an existing EC2 instance from Ubuntu 16.04 to 18.04 through CLI with custom Ubuntu 18.04 image?
How do I upgrade an existing EC2 instance from Ubuntu 16 to 18 through CLI/ansible with our own Ubuntu 18.04 image?
Tried below steps and able to upgrade from 16 to 18.04 but it used ubuntu common ...
0
votes
1
answer
1k
views
Temporary failure in Name Resolution PHP-Ubuntu
I keep getting this error very frequent:
Severity: Warning --> mysqli::real_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
This issue gets resolved ...
0
votes
0
answers
3k
views
Easiest way to setup Ubuntu as a VPN server (L2TP) for a home router to connect
I'm trying to create/deploy a VPN to solve a connection issue regarding a game I'm playing (Xbox). For this, I'm setting up a VPN on a EC2 machine on AWS and I want to connect from a home router. I ...
0
votes
0
answers
137
views
Error ubuntu server 18.04.4 "apt update" unable to update server repository
When I try to update Ubuntu Server 18.04.4, a repository returns an error and I am unable to update the server.
root# apt update
Err:1 https://artifacts.elastic.co/packages/7.x/apt stable InRelease ...
1
vote
1
answer
392
views
Issue upgrading R 4.05 to 4.1 in Focal 20.04 on AWS EC2
I am trying to upgrade R 4.0.5 to R 4.1 with an update instruction by Johannes Ranke on cloud-R and I did as follows;
sudo nano /etc/apt/sources.list
and added;
deb http://cloud.r-project.org/bin/...
1
vote
1
answer
2k
views
Can't ping after adding secondary network interface in aws ec2
Ubuntu version 20.04.
First we created a 2nd private IP on the only (primary) network interface. Both private IP addresses could be pinged. Now the instance has 2 private IP addresses, 1 public IP ...
0
votes
1
answer
1k
views
How can i upload folder from my local machine to EC2 inastance
i have a problem in uploading the folder from my laptop to my instance on amazon. i tried a lot of commands in my local machine like
sudo scp -i my_key.pem -r my_folder/path public_DNS:home/ec2-user/...