Sunday, October 1, 2023

SSH key fingerprints

How to turn a SHA256 key fingerprint into MD5:


ssh-keygen -l -E md5 -f <(ssh-keyscan -t ssh-ed25519 your_host_name) | awk '{print $2}' | cut -d":" -f 2-

Tuesday, September 26, 2023

AWS - listing EC2 and RDS details

 Within AWS CLI

aws ec2 describe-instances --query "Reservations[*].Instances[].[KeyName, PlatformDetails, PrivateIpAddress, InstanceId]" --output=text --no-cli-pager | sort


aws rds describe-db-instances --query "DBInstances[].[DBInstanceIdentifier,Engine]" --output=text --no-cli-pager | sort