6A - Secure a Network in a Cloud Environment Flashcards
You are the cloud operations manager for a shipping and distribution company. Your company utilizes Google Cloud infrastructure to deliver a virtual desktop interface (VDI) to employees. Your company has tasked you with configuring SSH access to the virtual machine (VM) instances for a group of newly-hired employees. The OS Login service provided by Google Cloud will configure PAM Modules. The PAM modules will provide authorization and authentication support to use Google Cloud IAM permissions. This type of support controls SSH access, using an Identity and Access Management (IAM) framework.
Configuration requirements are as follows:
Keys must be SSH-2 RSA public-private key pairs with a minimum length of 2048 bits.
Enable OS Login using the gcloud command-line interface (CLI)
Enable OS Login using the gcloud command-line interface (CLI)
VMs run Ubuntu 20.04 LTS
PROJECT_ID of VM instances will be ship001 and the geographic zone is
Authentication will occur on company-provided Linux devices.
Configure an OpenSSH server to obtain biometric authentication (who you are) or RFID access tags (what you have) from the company-provided Linux devices, using the NSS (Name Service Switch) OS subsystem.
Configure the PAM configuration file, sshd_config, to disable passwords, as the system will use SSH-authenticated biometrics instead.
Google Compute Engine, used through Google Cloud Console or the gcloud CLI, sets a username and generates an ephemeral SSH key pair for each user, before resolving each provided username to the corresponding OS Login account in the VM using NSS service modules.
The SSH key is then retrieved from the corresponding account and provided to OpenSSH in the VM using the SSH authorized keys command.
key bit length
2,048
key format
SSH-2 RSA
enable OS login with gcloud command
enable-oslogin
token 2
auth,
sufficient,
pam_fprintf.so,
N/A
edit the standard SSH privilegad access module (PAM) located by default at / _____ /pam.d/ _____
blank 1
etc
blank 2
sshd
in the google cloud console, grant a standard user role for each new user
roles/iam.serviceAssountUser
token 1
auth,
required,
pam_google_authentucator.so,
N/A
after spinning up a virtual machine (VM) instance renning ________ you show the new users how to access an instance using the following gcloud command
Ubuntu 20.04.LTS
gcloud compute ssh-project= ______ -zone = _______
ship001,
us-central1-a