You're writing a Bash script to automate the process of encrypting sensitive files before transferring them over the network. Which command sequence properly encrypts a file using GPG and sends it to a recipient's public key?1.0 Marksgpg --encrypt --recipient [email protected] /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destinationgpg --encrypt /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destinationgpg -c /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destinationgpg --encrypt --recipient [email protected] /path/to/file.gpgscp /path/to/file.gpg user@remote-server:/path/to/destinationgpg --symmetric /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destination
Question
You're writing a Bash script to automate the process of encrypting sensitive files before transferring them over the network. Which command sequence properly encrypts a file using GPG and sends it to a recipient's public key?1.0 Marksgpg --encrypt --recipient [email protected] /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destinationgpg --encrypt /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destinationgpg -c /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destinationgpg --encrypt --recipient [email protected] /path/to/file.gpgscp /path/to/file.gpg user@remote-server:/path/to/destinationgpg --symmetric /path/to/filescp /path/to/file.gpg user@remote-server:/path/to/destination
Solution
The correct command sequence to encrypt a file using GPG and send it to a recipient's public key is:
- gpg --encrypt --recipient [email protected] /path/to/file
- scp /path/to/file.gpg user@remote-server:/path/to/destination
The first command encrypts the file using the recipient's public key. The second command then securely copies the encrypted file to the desired location on the remote server.
Similar Questions
You're working on a Bash script that needs to securely transfer a file to a remote server over SSH without requiring user interaction. Which command sequence achieves this, considering both security and automation?1.0 Marksscp /path/to/file user@remote-server:/path/to/destinationsshpass -p 'password' scp /path/to/file user@remote-server:/path/to/destinationsftp user@remote-server <<EOFput /path/to/file /path/to/destinationEOFssh-keygen -t rsassh-copy-id user@remote-serverscp /path/to/file user@remote-server:/path/to/destinationrsync -avz -e "ssh -i /path/to/private-key" /path/to/file user@remote-server:/path/to/destinati
Which of the following commands can be used to copy a file from the local system to a remote system using the secure copy (scp) utility in Linux?Question 4Answera.scp user@remote_host:~/file.txt .b.scp file.txt remote_host:~/c.scp file.txt user@remote_host:~/d.scp user@remote_host:~/file.txt
You want to use a hash digest to verify that the text file secret_text.txt is not modified. Your public key is my_public_key.pem and your private key is my_private_key.pem. Which command do you use to create the hash digest?
You can use cipher.exe to encrypt files from a command line. Which of these command switches encrypts the specified directory?
Which of the following commands can be used to copy a file from the local system to a remote system using the secure copy (scp) utility in Linux?Select one:a.scp user@remote_host:~/file.txtb.scp file.txt user@remote_host:~/c.scp file.txt remote_host:~/d.scp user@remote_host:~/file.txt .
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.