command line – Copy and Paste options are not working in Gedit text-editor in a Linux terminal

I’m new to Ubunto and Linux. I’m using Ubunto 20.04 Virtual Machine, and I’m trying to install asterisk using the terminal.
There are some codes that I need to write in text files using gedit, but instead of rewriting the codes I want to copy them and paste them on gedit.
None of the following is working for me:
Ctrl + v
Ctrl + shift + v
Alt + Insert
Ctrl + Insert
Shift + Insert
I also noticed that when the terminal asks me to enter my password, It doesn’t show it on the terminal as I write it. I don’t know if that’s related.