To enable this:

Go into iTerm2’s preferences.

Go to the “General” tab.

Check “Applications in terminal may access clipboard”

Done