Questions tagged [aws]

Amazon Web Services (AWS) is a collection of commercial services centered around virtualized, commodity and clustered computing, networking, database and storage, as well as supporting tools that are offered through infrastructure as a service

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

SSH pem/private-key based login error?

I just created an ec2-instance with Amazon Linux 2 OS, then logged in to the system using login: ec2-user and an associated privatekey. Next, I created a new user x and copied the .ssh/authorized_keys ...
0
votes
0answers
19 views

Getting “tar: Exiting with failure status due to previous errors” while trying to compress a directory

I'm trying to compress a directory but getting this error tar: Exiting with failure status due to previous errors I'm using centos 7 on aws instance and here is the commands I've tried tar cvzf hmd....
-1
votes
3answers
28 views

How to grep lines for a specific profile starting with [default]

I'm trying to parse the lines of an .aws/config or .aws/credentials file of a specific profile such as [default] or [prod]. File example [default] region = us-east-1 output = json [nonprod] region = ...
1
vote
1answer
22 views

Reset Linux EC2 Server Password

Unable to login to EC2 ubuntu server due to permission issue. Issue: My EC2 ubuntu server has (root & ubuntu) user and I use to login to ubuntu using ssh. By mistake I have changed the ownership ...
0
votes
0answers
28 views

How to configure systemd-timesyncd for using UDP protocol?

By looking to the logs I see that systemd-timesyncd is failing to sync time on my servers: ip-10-120-6-39 ~ # journalctl -u systemd-timesyncd -en -- Logs begin at Mon 2020-08-31 18:41:44 UTC, end at ...
0
votes
0answers
42 views

Access mounted directory in Linux

I have mounted 2 directories in my Linux system. $ df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.7G 0 7.7G 0% /dev tmpfs 7.7G 0 7.7G 0% /dev/shm ...
0
votes
0answers
22 views

unable to access ssh at port 4422 on AWS

I have access to a cluster (paramshivay.iitbhu.ac.in) via port 4422 I can easily connect it by regular internet connection but whenever I try it to connect via AWS (either on ubuntu ssh instance or ...
0
votes
0answers
38 views

How to fix this Error: HTTP ERROR 500 and chcon: can't apply partial context to unlabeled file for WordPress

I am trying to correct this piece of code but I have an error and the code doesn't executed. I would like to use a Public IP to run WordPress as well. The problem is that I can't run sudo chcon -t ...
0
votes
0answers
5 views

AWS Cpu utilization Very High bcz of Nginx Procsess

My AWS Cpu Utilization is very high last 3 days some time only issue happen then i check with top command when cpu utilization is more than 90% that time too much nginx process are running so i thing ...
0
votes
0answers
39 views

How can I fix the error 'Is the MGS running?' when I try to mount FSx for lustre in Vagrant ( Virtualbox, Centos 7 )

I am running openVPN gateway to an AWS VPC. I can normally mount AWS FSx for Lustre on my bare metal CENTOS7 machine using a command like this sudo mount -t lustre -o noatime,flock 10.1.1.90@tcp:/fsx /...
2
votes
1answer
105 views

No package systemd available on Amazon linux EC2

I am using AWS Linux machine to host Web API application. I need to make my application keep on run, so that i need systemd has to be installed on my linux machine.I tried sudo yum install systemd but ...
0
votes
0answers
14 views

Can Postgres data_directory be Moved to Block Storage on OpenBSD?

Trying to figure out if we can switch Operating System from Linux (Ubuntu) to OpenBSD. Moving the Postgres data_directory to the Block Storage works flawlessly on Ubuntu/Debian e.g: https://www....
0
votes
0answers
49 views

aws ec2 describe-security-groups + awk sed

I am sure this is not the most efficient method, but I need help formatting the results of this aws command: aws ec2 describe-security-groups --group-ids sg-xxxxxxxxxxxxx --region=us-east-1 --profile=...
0
votes
0answers
17 views

Azcopy not taking the aws credentials

I have installed the azcopy utility tool in my linux machine, to copy the files from S3 to azure blob. and i have setted up the AWS credentials in linux like below: export AWS_ACCESS_KEY_ID=XXX ...
0
votes
1answer
18 views

Exe file creating directories with just no right permissions to folder

I have a script that runs in aws which basically pulls data feeds via api then creates a folder which it then dumps a csv file into. Right now it is supposed to name the directory based on its name. ...
0
votes
0answers
103 views

RHEL 8.2 on AWS EC2 crashed and is unreachable after error on 'dnf update'

I executed: dnf update -v dnf clean all && dnf update and it seemed to have killed my instance. See detailed output below. On the AWS console, 'reboot' didn't have an effect. So I stopped the ...
0
votes
1answer
47 views

nohup process not persisting between ssh sessions

I have an ubuntu server on AWS EC2. I can access it, with Putty and ssh, from a Windows 7 laptop. I would like to start a process up during one of these ssh sessions and have it continue after I have ...
0
votes
0answers
110 views

Script error: Invalid bucket name

I have a task to go through all the s3 buckets in my account and find the ones that are not encrypted by the default kms encryption. I have drafted the following two commands with a loop to go through ...
0
votes
0answers
13 views

Unable to login as accidentally edited hist.deny file to deny all host and didnot edit host.allow file

Hi I have root access to AWS machine hosted on Linux. I accidentally added a line in host.deny file to deny all host. but I didn't make any changes to host.allow file. Now I am logged out of the ...
0
votes
0answers
3 views

AWS EBS volume backup - where is the database?

I am in some pretty bad trouble. Earlier today i accidently ran sudo mv /* /etc so everything in the system went to the etc folder. As stupid as i was i soon after exited the ssh connection which ...
0
votes
1answer
28 views

Expanding Date Command inside single quotes in linux

I am new to linux. I am wondering why date command is not expanding inside single quotes. so if i give command like below d=$(date +%m%d) echo 'A1D$d' Output is A1D$d But If i give without quotes ...
0
votes
1answer
27 views

need to move only zip files to separate directory and unzip them

I have a directory /home/ubuntu/uploads . I need to check if it contains any zip file. if it contains then I need to move the oldest modified file according to date to a different directory called /...
0
votes
0answers
9 views

AWS centos prevent from downloading latest version of yum package on restart?

Whenever my AWS Workspace gets rebooted, it downloads the latest version of a database and then I have to uninstall it and reinstall the correct downgraded version. My yum packages must be written ...
1
vote
1answer
29 views

Monitoring AWS by Nagios

I have an AWS EC2 project to be monitored by Nagios. My Nagios runs on a server outside of AWS. Service monitoring works, but host monitoring does not. How can I fix it? define host { use ...
0
votes
1answer
36 views

I want to download the latest 150 files from S3 Spaces

I want to download the latest 150 files from S3 Spaces. I used this command s3cmd get s3://obs/site1/uploads/large/ /home/ankit -r | tail -n150 but it does not do what I want; instead, it starts ...
2
votes
1answer
82 views

Get the size of a S3 Bucket's sub-folder through bash script

I am trying to write a bash script to get the total size of sub folders in a S3 bucket. My bucketpath s3://path1/path2/subfolders Inside the path2 folder i have many sub-folder like 2019_06 2019_07 ...
1
vote
2answers
28 views

How to get notified after all `aws s3` downloads is complete?

I am going to run a lot of aws s3 download like so with a bash file aws s3 cp s3://my-bucket/file0001.txt file0001.txt & aws s3 cp s3://my-bucket/file0002.txt file0002.txt & aws s3 cp s3://my-...
0
votes
1answer
17 views

unable to add single quotes in a bash script to the output of a file which has ssh public key

Assigning SSH key to a variable and assigning that variable to the AWS CLI command auth=$(< /home/user/.ssh/id_rsa.pub) and assigning auth to --ssh-public-key parameter in the AWS CLI command . ...
1
vote
1answer
20 views

Where to put AWS credentials for daemon user?

I have a script that backs up a directory to AWS S3 every night. (The script is run via a systemd timer.) I would like to create a dedicated user for this service. Ordinarily, I would not create a ...
0
votes
0answers
10 views

How can I install a zip file plugin on AWS SSH Linux that is on Windows directories?

Im pretty new in Linux , especially Aws Linux ... I have to install a .zip plugin file on my aws linux server for my wordpress site but Im having problems with that , different from other plugins this ...
-2
votes
1answer
36 views

LVM on AWS instance issue. Configure root mounting point

AWS configuration issue and question. On Debian, during install we can set-up LVM configuration, which allows us to set up root / mounting point. So normally for me it would look like this with ...
2
votes
1answer
594 views

Timeout when connecting RDS using AWS session manager via EC2 instance

I am having trouble accessing AWS RDS instance in a private subnet using session manager through ec2 instance (Ubuntu). Port forwarding using AWS Session manager - aws ssm start-session --target ...
0
votes
0answers
1 view

Deploying iPython instance on a port address while running a docker container on AWS

I am running the BVLC\Caffe docker image on a Ubuntu instance running on an AWS. After launching the image, I manage to launch its iPython instance on the terminal itself. I have read about ...
0
votes
0answers
13 views

where to place .php files in AWS Linux AMI for hosting a website

I'm working on a web hosting project in which I have an HTML code for the landing page and 3 other PHP code files for other pages on the website I am using AWS Linux AMI, Installed LAMP. I have ...
1
vote
1answer
83 views

How to access vnc over HTTP using SSH Tunnel?

I have an AWS Debian9 EC2 instance running, I have set up TightVNC and can access the server via a VNC client. I've allowed access to ports 5900, 5901, 22, 80 and 443 via the security groups in AWS. ...
0
votes
0answers
25 views

How to forward path along with port

I'm willing to bet I have a fundamental misunderstanding here, but I am trying to do something akin to port-forwarding AND url-forwarding without using something like nginx. I have a remote linux ...
1
vote
1answer
127 views

How can I pass environment variables from sshd's environment to new SSH sessions?

How can I pass environment variables from sshd's environment to new SSH sessions? I'm running sshd in Kubernetes pods. Kubernetes sets various variables in the containers environment, including the ...
0
votes
1answer
35 views

Unlock AWS-hosted Ubuntu server user account with access only to the file system

I have launched an AWS instance using one of the Ubuntu Server AMIs, successfully logged on with the default user (ubuntu) and key file, installed some stuff, added some users, disconnected and forgot ...
0
votes
1answer
54 views

Ubuntu ufw Lightsail not opening port 80 [duplicate]

I have port 80 open from AWS lightsail console, and ufw status shows that port 80 should be open. And yet, I cannot curl into port 80 nor can I telnet or ping or launch a server. I've checked ...
-1
votes
1answer
253 views

How to Create a PTR Record for AWS Mailserver's Elastic IP Address

I configured an SMTP server (Postfix) on an AWS instance. However, as a defense against spam most well-managed emailservers will reject messages sent from any host whose IP does not resolve back to ...
0
votes
0answers
223 views

Dealing with XFRM policies Using Strongswan VTI tunnel with Amazon VPC

I can't make CentOS Strongswan VTI route-based connection to AWS VPC Connection to Work. I did successful BGP connection. But when trying to ping the AWS instance from That Linux box I see that the ...
1
vote
2answers
219 views

aws session manager to instances without public IP or EIP

I am trying to set up session manager to connect to my instances, and I am facing an issue with instances that do not have public IP or EIP. What I have done is created a role and attach the ...
0
votes
1answer
125 views

Mail sent, from PHP script,not showing up

I am running a website on two AWS EC2 instances running Ubuntu. I am using LAMP. The following PHP code used to successfully send emails, to warn of suspicious activity, but stopped doing so in ...
0
votes
0answers
20 views

What if servers get added in the load balancer (AWS) using Auto Scaling which is booted using Terraform?

I booted up Load Balancer in AWS with ASG(Auto Scaling Group), which has capacity of 6 instances using Terraform (Infrastructure As a Code). Suddenly load increases because of too many users/...
1
vote
3answers
114 views

SFTP server with third party user management system?

I understand how to set up SFTP servers on Linux and create users and their passwords manually. So basically, the users get authenticated as normal Linux users get authenticated through /etc/passwd. ...
0
votes
1answer
128 views

SSL validation fails, after applying SUSE-SLE-Module-Public-Cloud-12-2020-251

Post applying the following OS patch SUSE-SLE-Module-Public-Cloud-12-2020-251 (Security Update for aws-cli) for the month of Feb 2020, AWS CLI was throwing the error SSL validation failed. The command ...
0
votes
1answer
274 views

Cannot telnet host from ec2 instance behind a proxy

Let me try to rephrase the whole question as it was not very clear the first time. I need to understand and workout port forwarding. I have an ec2 instance running behind a proxy server. I need to ...
1
vote
1answer
41 views

How to use aws kms encrypt when “plaintext” starts with dash (-)

I want to encrypt a client secret that starts with a dash, but if I do something like: aws kms encrypt --region us-east-1 --key-id xxxyyzz --output text --query CiphertextBlob --plaintext -blahblah- ...
0
votes
0answers
90 views

Trouble installing google-authenticator on Ubuntu

I am using Ubuntu 18.04 LTS via AWS EC2 and I am trying to setup Google Authenticator on login. The first thing I did was run sudo apt-get update, then sudo apt-get install libpam-google-...
0
votes
0answers
64 views

LVM Disk Space and Docker

I am trying to determine how LVM partitions a particular disk in AWS ECS. Per AWS Docs (see here), an unmounted LVM is used to for running containers - I guess this is where the container(s) file ...

1
2 3 4 5
7