So I am running scp -i ~/Downloads/ansible-benchmark.pem ~/Documents/cis-playbook/section-1.yaml ubuntu@ec2-18-170-77-90.eu-west-2.compute.amazonaws.com:~/etc/ansible/playbooks/ to transfer an ansible playbook I created with VSCODE the section-1.yaml file, but I am coming up with an error scp: /home/ubuntu/etc/ansible/playbooks/: No such file or directory the directory definitely exists in the ec2 instance, I did install ansible, but for some reason I don’t know why it isn’t recognising the
Tag: amazon-ec2
sudo yum install is giving weird error on AWS Linux ec2 (SyntaxError: invalid syntax)
Machine details: Cloud: AWS OS: Linux ip-10-196-64-140.eu-west-1.compute.internal 4.14.209-160.335.amzn2.x86_64 #1 SMP Wed Dec 2 23:31:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Error details: Answer I tried to reproduce the issue, and it fails when you run yum with python3 instead of python2: You should use python2, not python3 for yum: It seems that in your instance default python version was changed
can’t change postgres 10.4 user password on AWS ec2
I want to add password protection to my psql db that I have set up on an Amazon Linux ec2 server. I only want the database to be accessible through the server instance(I am connecting to server via putty), and only with password authentication. Previously, my pg_hba.conf (located at /var/lib/pgsql/data/) looked like this (USER: all, METHOD: trust): To secure it,
Snap and certbot, unknown command ‘unset’
I’m trying to set up Let’s Encrypt certificates on an ec2 instance for the first time and have run into an error which I cannot find a resolution for online. I’m using the official certbox nginx guide, and am at the step where I need to install the route53 dns plugin. However, when I run sudo snap install certbot-dns-route53, I
How to let the python script (abc.py) keep executing on AWS even after Connection lost or SSH connection is terminated?
I was using Jupyter notebook on AWS AMI and using the port forwarding on Windows using PuTTY. I got my connection terminated and all the work of 24 hours is lost now and I’m unable to get that. So I used a script instead of Notebook and the same thing happened. I used to think that the process would keep
AWS CLI S3 CP –recursive function works in console but not in .sh file
I have the following line inside of a .sh file: When I run this line in the console, it runs fine and completes as expected. When I run this line inside of a .sh file, the line returns the following error. Here is my full .sh script. If I manually add the Run.py file (not having it copied over from
How to keep my web app running after exiting from EC2 CLI
I have tried tmux to keep my Streamlit app running on my AWS EC2 instance but it is not working, I am new to AWS and Linux, anybody ?? Answer I suggest you use screen Utility. Start new Screen You can start a new screen by the following command Then Press Enter to Start using Screen. Detach Screen Press Ctrl+A+D
Change Tiny Proxy IP per request on EC2
I’m fairly new to Proxy servers and how they work exactly. I recently span up an AWS EC2 instance to act as a proxy server using tiny proxy. Everything seems to work just fine however i am curious about something. Is it possible to configure tiny proxy to use a different public IP each time it makes a request ?
jupyter notebook can’t detect conda kernels only on boot
I’m trying to automatically start jupyter server on boot. (ec2, amazon linux) I got the jupyter server working and correctly loading all the conda kernels. and I tried to run jupyter on boot. (tried rc.local, systemd, crontab and all fails to load conda kernels and only loads basic python2 and python3 kernels) I’ve traced it down to the nb_conda_kernels not
Magento extremely slow after migration to a new AWS instance
We are using t2.large as instance type and php v 7.2 Magento2 multi-store is taking 25 seconds to load The product page is extremely slow We are Bitnami cloud image of Magento Does the server location affects the performance ?? Do I have to use a Load balancer?? I am using a built-in cache for Magento and flat category The