Creating secure Linux VMs in Azure with SSH key pairs Generate cert
openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 \
-keyout filename.key \
-out filename.pem
Secure key file
chmod 0600 filename.key
Creating secure Linux VMs in Azure with SSH key pairs Generate cert
openssl req -x509 -nodes -days 365 \
-newkey rsa:2048 \
-keyout filename.key \
-out filename.pem
Secure key file
chmod 0600 filename.key
echo "$USER access on $(date)" | mail -s "${HOSTNAME} Security Alert" [email protected]