My setup is using a Macmini with Docker for Desktop installed and with the Kubernetes option enabled. The main objective of the setup: use kubectl
directly without any additional flags from my local computer, accessing/interacting the remote k8s instance
Copy public key to the remote authorized_keys
file
cat ~/.ssh/id_rsa.pub | ssh admin@macmini-server 'umask 0077; mkdir -p .ssh; cat >> .ssh/authorized_keys'