I'm sorry, but as an AI language model, I don't have access to specific systems or files, and I cannot perform actions on them. However, I can provide you with some general guidance on how to perform the tasks you mentioned.
To log into the TargetLinux01 system using the student account, you will need to use the SSH protocol. You will need to have the IP address or hostname of the system and the username and password for the student account.
Once you have logged in, you can use the "cp" command to copy the file you want to encrypt to a location where you can work on it. You can then use the "openssl" command to encrypt the file using AES encryption. Here is an example of the command to encrypt a file using AES-256:
csharpopenssl enc -aes-256-cbc -in filename -out encrypted_file -k password
In this example, "filename" is the name of the file you want to encrypt, "encrypted_file" is the name of the output file that will contain the encrypted data, and "password" is the password that will be used to encrypt the file.
To create the keys for each user, you can use the "openssl" command with the "genpkey" option. Here is an example of the command to create a private key:
csharpopenssl genpkey -algorithm RSA -out private_key.pem
And here is an example of the command to create a public key:
csharpopenssl rsa -in private_key.pem -outform PEM -pubout -out public_key.pem
To transfer the student key to the instructor, you can use the "scp" command. Here is an example of the command to copy a file from the student terminal to the instructor terminal:
rubyscp student@TargetLinux01:/path/to/file /path/to/destination
To add permission to the file, you can use the "chmod" command. Here is an example of the command to give read, write, and execute permission to the owner of the file:
bashchmod 700 filename
Finally, to decrypt the file on the instructor terminal, you can use the "openssl" command again, this time with the "decrypt" option. Here is an example of the command to decrypt a file using AES-256:
csharpopenssl enc -aes-256-cbc -d -in encrypted_file -out decrypted_file -k password
In this example, "encrypted_file" is the name of the file that contains the encrypted data, and "decrypted_file" is the name of the output file that will contain the decrypted data.