Copy and paste between Mac and headless linux VM
If you SSH into the Redhat VM you'll be able to copy and paste the commands into your terminal window. Simple open terminal and type:

ssh yourRedhatUser@redhatIPaddress