Questions tagged [amazon-ec2]
Amazon Elastic Compute Cloud (EC2) is a cloud-based computing platform.
487
questions
0
votes
1
answer
3k
views
Using screen command with aws ec2 start-up script doesn't work
I'm trying to start up a minecraft server as soon as my ec2 instance boots (it has a CloudWatch event to stop and start the instance everyday, so when it boots i need to start the server)
My server's ...
0
votes
1
answer
2k
views
Crontab - Linux - EC2 - Python - No module named 'pandas'
I'm trying to run a Python script (it's a webscraping) via crontab on EC2. But it's not working.
Here is my task:
SHELL = /bin/bash
PATH = /usr/local/sbin:/usr/local / bin: / sbin: / bin: / usr / ...
0
votes
1
answer
3k
views
AWS EC2 disk full, cannot release space
I am using an EC2 instance to run a node app. I logged into the server after a while only to realise that the server has run out of disk space. After debugging, I realised that logs are taking up ...
0
votes
1
answer
648
views
Bridging Amazon EC2 With Netplan (18.04)
I have tried looking through this site, and google for a solution before anyone asks. I've made numerous attempts to make a bridged network on my Amazon EC2 server with no success. I've tried
My "...
6
votes
0
answers
270
views
Cannot upgrade EC2/Ubuntu to 18.04.4 with do-release-upgrade. Maybe it's python?
I'm trying to upgrade my Amazon EC2 instance from Ubuntu 16.04.6 to 18.04.4.
I've already performed the cleanups like apt clean, apt autoremove etc...
Then I start do-release-upgrade, I confirm to ...
0
votes
0
answers
1k
views
command aws not found in ubuntu 19.10 after pip install awscli
I am trying to pro grammatically connect to an aws instance.
So on my Ubuntu 19.10 I did
python -m install -u pip
/usr/bin/python: No module named install
instructions
then I did
debian@osboxes:~/...
1
vote
1
answer
579
views
ssh to amazon aws instance from virtual machine ubuntu 19.10
I have aws instance key .pem file I saved that in a folder
"home/debian/cs605\ data\ management/assignment6/mumbai\ instance\ keys"
the key name is mumbai-instance-1.pem
I wrote a small bash ...
2
votes
2
answers
4k
views
How to connect Ansible to AWS-EC2 via ssh
I want to connect ansible to EC2 via ssh. I created a key pair on my local machine(ubuntu) and copied it to my EC2 instances using ssh-copy-id. The copy was successful, but I get the error below when ...
2
votes
1
answer
378
views
Upgrade R package on ec2 instance
The version of R is 3.4 and want to upgrade it to 3.6. Then I have followed the these steps:
sudo /bin/bash
and I just went to root.
Then remove the r-base core:
# apt-get remove r-base-core
...
1
vote
0
answers
241
views
Installing Apache on a new Ubuntu 18.04 EC2 Instance and Stalled
I recently logged into a fresh install of Ubuntu 18.04 on my EC2 Instance. I ran the updates and upgrades and everything worked fine. I then restarted the server and went to install Apache.
I ran ...
1
vote
1
answer
495
views
18.04 server: AWS slow network upload
I have an AWS EC2 instance of Ubuntu 18.04.3 LTS.
When I created the instance, the network was 1 gbps up and down. After using it for awhile, the upload is stuck at 4.2 mbps, but with 1 gbps download....
1
vote
1
answer
420
views
cron jobsare not working on ubuntu ec2 machine. Multiple methods attempted
Test cronjobb:
* * * * * /bin/echo Test >> /user/ubuntu/test.txt
I tried including this in multiple places with no luck:
added in crontab -e
added in sudo crontab -e
added in sudo vim /etc/...
1
vote
1
answer
860
views
Couldn't connect to EC2 instance
I'm trying to connect to my EC2 instance with terminal:
ssh -i server.cer ubuntu@ec2-**-**-***-**.us-west-2.compute.amazonaws.com
but have
The authenticity of host 'ec2----.us-west-2.compute....
2
votes
0
answers
2k
views
Renewing certificate on server with Let's Encrypt when first issued with docker
I am running a dockerized django on an EC2 instance. I configured nginx in a docker container and got a certificate also in a docker container. (I followed this guide: https://www.humankode.com/ssl/...
1
vote
1
answer
1k
views
I can't ssh to my Amazon AWS Ubuntu instance using a newly created user and a key pair?
I created a user called grader to my instance and gave it sudo permission, also I switched the password in /etc/ssh/sshd_config to be off.
I generated a key pair in my local machine and added the ...
3
votes
1
answer
539
views
Can't reach EC2 on certain ports
I'm able to connect to my EC2 with window's putty (port TCP 22) but not other ports (e.g. port TCP 80 or TCP 3000).
Using netstat I can see that I'm getting SYN_SENT on ports other than 22:
netstat -...
1
vote
1
answer
8k
views
how to change the MTU size permanently in EC2 Ubuntu18.04 instance?
I'm trying to change the MTU size of Ubuntu 18.04 EC2 instance back to 1500 from 9000 since my other cloud instance's MTU set to 1500. I tried various solutions like adding below two lines in the /etc/...
0
votes
2
answers
3k
views
AWS ubuntu server, web page not loading
I'm struggling with something on my AWS ubuntu instance. I'm trying to install MyBB on my server. I've created an RDS database and an EC2 ubuntu instance. On my instance, I've installed apache2 and ...
2
votes
1
answer
2k
views
EC2 ubuntu instance is full but can't find why
Here's the current usage
Filesystem Size Used Avail Use% Mounted on
udev 488M 0 488M 0% /dev
tmpfs 100M 11M 89M 11% /run
/dev/xvda1 7.7G 7.7G 396K 100% /
...
1
vote
0
answers
1k
views
Unable to ssh into ec2 instance: WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0555 for '<key-name>.pem' are too open
After I created an ec2 instance, I tried to ssh into the port by using the private key, but even though I chmod the key down to 400, I get this error.
vagrant@ubuntu-bionic:/vagrant$ chmod 400 ./itmo-...
2
votes
1
answer
819
views
how to change display name or nickname of ubuntu server? (AWS EC2)
I'm wondering how I can change the displaying name when I log into my server.
So for example I SSH into the server and it display my username @ ec2 instance ip.
example: [email protected]
what ...
1
vote
1
answer
967
views
Unmounting and detaching volumes on AWS ec2 instance not working?
Hello good Ubuntu community!
I have an EC2 instance that I'm working with on Ubuntu 16.04 LTS w/ three volumes attached. Device xvda is the normal production volume with all current live data, and ...
0
votes
3
answers
730
views
how to find a valid Private ip address of the machine out of all the interfaces?
My main objective is to find out the valid interface's private IP address in Linux machine.
e.g. I have 7 interfaces and out of 7 I have two interfaces docker0 with IP address of 172.12.2.1 and eth0 ...
0
votes
0
answers
48
views
Limiting shell commands that a user can run over SSH
I would like to setup up an isolated AWS EC2 Linux server which has 2 different users:
1) Data Owner: Can upload CSV file to this server from specific IP address. We can create an unrestricted user ...
0
votes
0
answers
73
views
Listen on 22 port from specific IPs
I've two test AWS EC2 instances with below IPv4 Public IPs
3.15.217.194
18.222.170.204
I want to listen SSH request from above two IPs on my local ubuntu machine to copy some files.
Here is my ufw ...
1
vote
1
answer
256
views
apt configuration for bionic hosts in EC2
We have an apt repository hosted in an S3 bucket, which we use to deliver packages to workloads in EC2. On xenial, we have had no problem, however using the same configuration on bionic, we are now ...
1
vote
1
answer
1k
views
Permission denied: SCP from remote to local
I have been trying to copy a folder from my remote server to my local and saw a lot of other questions and tried quite a few solutions there however no joy for me.
This is my command:
scp -r -i /...
0
votes
1
answer
2k
views
Apache2 shutting down after a while
I build my own server on EC2 this weekend, everything goes well and my server is running, at least for a while, until shutdown.
First of all, I'm starting the server with sudo service apache2 status ...
19
votes
4
answers
39k
views
Please login as the user “ubuntu” rather than the user “root”
I launched an Ubuntu 18 instance on EC2.
I connected to the server using ubuntu user.
I created a new user named newuser and added it to the sudo group.
Then I ran:
rsync --archive --chown=newuser:...
0
votes
1
answer
393
views
Cannot upgrade software on ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1087-aws x86_64) due to dependency issues
I am running ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1087-aws x86_64) on an AWS EC2 t3a.nano instance. When I accessed my box over SSH, I see this:
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1087-aws ...
2
votes
1
answer
5k
views
Why doesn't postfix/dovecot receive mails from Gmail?
I'm setting up a Postfix server that use Dovecot SASL Authentication on a EC2 virtual machine with an ubuntu 16.04 Xenial. I can send mails to my Gmail account but I cannot receive them. It supposed ...
3
votes
0
answers
2k
views
/run directory goes out of space and server goes non responsive
Issue:
My EC2 instance (used to host a tomcat based web application) goes non-responsive. It stops serving web page and does not let me login through SSH. It starts working back if I reboot it from ...
0
votes
1
answer
707
views
AWS Cloud9 EC2 won't open browser when logging into Heroku
Thanks in advance,
why doesn't this work? My firewall allows incoming and outgoing connections on any port. I need to log in to Heroku . I am using Google Chrome. Running 16.04 Ubuntu. Any ideas?
...
0
votes
2
answers
627
views
Connection to Port 22 refused
We have an issue in our LAN network which do not allow us to connect through Port 22 to servers outside our network. I am trying to use SSH to connect to EC2 instance in Amazon. Since, SSH connected ...
2
votes
1
answer
1k
views
How to set up users on SFTP server?
This is for Ubuntu 16.04, if that matters. I tried making a tag but it said I don't have enough rep.
I set up an SFTP server on an Amazon AWS EC2 instance so our clients can transfer files securely. ...
0
votes
1
answer
338
views
Which image should I use on AWS China?
I want to run Ubuntu on EC2 in AWS china
The ubuntu Amazon EC2 AMI Locator does list some AMIs in the china regions... but they don't seem to be available.
Are there any official Ubuntu AMIs pushed ...
1
vote
1
answer
2k
views
Permission denied (publickey). AWS: Ec2 Connection Error on Ubuntu 18
A while ago i was able to connect to my server using SSH and suddenly it stopped working.
I am trying command: ssh -i "mykey.pem" ubuntu@server-ip and Ec2 throws back an exception
Permission ...
0
votes
1
answer
84
views
Limitations of conjure-up on AWS
I saw an initial set up video of conjure-up on AWS. Here is the video URL.
https://www.youtube.com/watch?v=at3ZNjV3ZtI
I know that kubernetes can do pod scaling per https://kubernetes.io/docs/tasks/...
0
votes
1
answer
376
views
Configuring ISCSI timeout settings for AWS Storage Gateway volume gateway
I have an EC2 instance which is configured to attach to an volume gateway volume configured using the AWS Storage Gateway service. The instance connects to the iSCSI interface provided by the volume ...
0
votes
0
answers
595
views
Running Cron job on Amazon Instance with Bitnami
I have a python file programmed that makes an automatic backup of my Amazon instance.
In this instance I have Mautic Bitnami installed.
I have tried to run the file from the next line, directly in ...
0
votes
0
answers
74
views
Ubuntu server 16.04 - dashboard for managing running application / ports
I am running my ubuntu standard server on AWS EC2 instance.
I have multiple application, each is running on a different port.
I'd like to be able to monitor those applications.
Is there any dashboard ...
1
vote
2
answers
2k
views
Issue downloading and Installing Anaconda - Error "No such file or directory" running downloaded bash script
I am trying to follow Getting Spark, Python, and Jupyter Notebook running on Amazon EC2, but I'm stuck on step 4.
This part works. The file Anaconda3–4.1.1-Linux-x86_64.sh gets downloaded to /home/...
4
votes
1
answer
4k
views
How to create an folder path alias on ubuntu EC2 instance?
ubuntu 18.04 on AWS
I followed an answer on stackoverflow to create a path alias:
nano ~/.bashrc
alias myfolder='/home/xxx/pms'
When I try to cd
cd myfolder
I get:
No such file or Directory
...
-1
votes
1
answer
83
views
Ubuntu best practices in AWS [closed]
Can have someone help me on how to secure the ubuntu ec2 instance in AWS?
1
vote
0
answers
340
views
Heavy workload in ec2 ubuntu cause ssh_exchange_identification: read: Connection reset by peer
I am recently experiencing problem with t2.micro with unlimited enabled such that the instance runs into ssh_exchange_identification: read: Connection reset by peer when cpu usage averages 70%
I am ...
1
vote
1
answer
1k
views
Unknown processes with high CPU utilization Ubuntu on EC2
I have a Ubuntu instance on EC2 (t3.medium, Ubuntu Server 18.04 LTS) that has been consuming lots of CPU. Their names are not Googleable (just random characters) and does not give any clue on what ...
0
votes
1
answer
1k
views
Is this too much memory for mysql on ubuntu?
I had a question about mysql memory usage in a ubuntu server.
I have an AWS EC2 server that hosts about 20 wordpress sites, all conencted to 1 mysql instance. They aren't huge sites by any means, but ...
1
vote
2
answers
2k
views
Apache in an AWS Instance not starting
I had an instance with AWS, decided to upgrade the plan of that instance and now my instance is not working properly with 2 sites that I had.
I detached the static IP from the old instance and put ...
0
votes
1
answer
3k
views
SSH connect to a server: "Permission denied (publickey)."
I'm trying to connect to a remote AWS (Ubuntu) server using SSH and keep getting this error msg:
Permission denied (publickey).
On my local machine, under ~/.ssh/config I have this set:
Host ...
1
vote
0
answers
1k
views
Not able to ping from AWS EC2 instance
In my AWS EC2 instance, I hosted my website few days back. The website has apache, php, mysql and elasticsearch installed. Few days back I updated my site with SSL certification. I configured a ...