Complete the command to start a secure SSH session to a remote server.
ssh [1]@example.comThe SSH command requires the username before the @ symbol to connect securely to the remote server.
Complete the SSH command to specify a custom port number 2222.
ssh -p [1] user@example.comSSH uses port 22 by default, but specifying -p 2222 tells SSH to connect on port 2222 instead.
Fix the error in the SSH command to copy a file securely to a remote server.
scp [1] -P 2222 file.txt user@example.com:/home/user/
To specify a port in scp, use uppercase -P. Lowercase -p preserves file attributes.
Fill both blanks to create a dictionary comprehension that maps usernames to their lowercase versions if the username starts with 'a'.
{user: [1] for user in users if user.[2]('a')}The comprehension uses user.lower() to normalize case and user.startswith('a') to filter usernames starting with 'a'.
Fill all three blanks to create a dictionary comprehension that maps filenames to their sizes if the size is greater than 1000 bytes.
file_sizes = { [1]: [2] for [3] in files if files[[3]] > 1000 }The comprehension uses 'filename' as the key and 'files[filename]' as the value, iterating over 'filename' in files.