If you search on how to pair a HC-05 and a HC-06 together, you can find several posts or videos on the subject. I tried all those ways but in the end, I had to find my own way to do it. So this is how  I paired the two modules together. You just have to copy/paste the code into the terminal program while holding the small button on the HC-05 and you’re done. Don’t forget the HC-05 must be plugged into a USB to serial port into the computer and the termninal program should be at 9600 bauds. If it doesn’t work, try switching to 38400 bauds; this should do the trick.

So here’s the code I’m using to pair two devices.

AT                                     should answer OK
AT+UART?                    should be +UART:9600,0,0 if not, make next line command
AT+UART=9600,0,0    to set back the baudrate to 9600 bauds
AT+RMAAD                  clear all paired devices
AT+ROLE=1                 turns it into the master
AT+BIND=0                  binds it to a dummy address
AT+CMODE=0            only allows it to be connected to the bind address
AT+INQM=0,5,5        searches the device
AT+INQ                        Only if no address is showing
AT+BIND=<address>  binds the address

For example in the last bind command I sent:

AT+LINK=98D3,31,FC2C0D

Hopefullly this helps