key-based ssh prompting password

Key-based SSH login is prompting a password despite it’s already setup to use keys. As turns out, the home directory was changed to 777. To fix, I changed home folder permissions and restarted SSH. It probably does not need a restart, but it doesn’t hurt. chown -R username:username /home/username find /home/username -type d -exec chmod 755 {} \; find /home/username -type f -exec chmod 644 {} \; sudo systemctl restart ssh

February 21, 2023 · 1 min · ulysses

yum version lock

How to lock a package or software in RedHat. # For RHEL 5 yum install yum-versionlock # For RHEL 6 and 7 yum install yum-plugin-versionlock # For RHEL 8 and 9 yum install python3-dnf-plugin-versionlock Locking a package yum versionlock gcc-* List locked packages yum versionlock list

February 21, 2023 · 1 min · ulysses

missing rhel prompt on bash

Here’s how to restore or set the Bash prompt on RHEL systems. echo "PS1='\u@\h \w]\$'" >> ~/.bashrc source ~/.bashrc

February 20, 2023 · 1 min · ulysses

gcp backend services health status

Here’s how to get health status of a GCP Load Balancer Backend Services. For all load balancers except target pool. gcloud compute backend-services get-health BACKEND_SERVICE_NAME \ --region us-central1 \ --project project-id For target pool load balancers, use this command. gcloud compute target-pools get-health TARGET_POOL_NAME \ --region us-central1 \ --project project-id

February 14, 2023 · 1 min · ulysses

aws rds enable performance insights

Here’s how to enable performance insights on a RDS instance. Enable aws rds modify-db-instance \ --db-instance-identifier sample-db-instance \ --enable-performance-insights \ --region us-east-1 \ --profile default Disable aws rds modify-db-instance \ --db-instance-identifier sample-db-instance \ --no-enable-performance-insights \ --region us-east-1 \ --profile default

February 13, 2023 · 1 min · ulysses

gcp bms list luns in volume

Here’s how to list the luns for a particular volume. gcloud bms volumes luns list --project project-id --region us-central1 --volume at-xxxxxxx-volxxx

February 11, 2023 · 1 min · ulysses

gcp bms describe instances

Here’s how to describe a Bare Metal Server (BMS). The output display storage LUNS and network information. gcloud bms instances describe INSTANCE --project PROJECT-ID --region us-central1

February 8, 2023 · 1 min · ulysses

gcp bms describe volume

Here’s how to describe a Bare Metal Server (BMS) volume within a project. gcloud bms volumes describe at-xxxxxxx-vol001-data --project project_id --region us-central1

February 8, 2023 · 1 min · ulysses

gcp bms list volumes

Here’s how to list all your Bare Metal Servers (BMS) volumes within a project. gcloud bms volumes list --project PROJECT_ID --region us-central1

February 8, 2023 · 1 min · ulysses

check for new kernel

Checking for new kernel on multiple distros. Redhat, Centos, Fedora, Rocky rpm -qa kernel yum list installed kernel Arch Linux pacman -Q | grep linux Fedora dnf list installed kernel SUSE rpm -qa | grep -i kernel zypper search -i kernel Debian, Ubuntu, Mint dpkg --list | grep linux-image

February 5, 2023 · 1 min · ulysses