Setting up kubernets using kind in virtual machine

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

hey i’ve installed kind within a virtualbox vm but cannot connect from the host to it.
The network works and i have copied the ca.crt and ca.key to the host. Yet on running
kubectl cluster-info --context kind-kind --certificate-authority "redacted"
I get,
error: You must be logged in to the server (Unauthorized).
Can someone help? (edited)
Kubernetes version:
Cloud being used: bare-metal
Installation method: kind
Host OS: ubuntu 22

The solution was to simply copy the config in ~/.kube to the host. Something must have gone wrong the first time.