<p>Last year, I built a K8S cluster on AWS with <a href="https://github.com/kubernetes/kops" rel="nofollow noreferrer">kops</a></p>
<p>Now, One year after, I don't remember which are the private keys. I must connect my VM through SSH, but I don't remember where I have put the PK on my local machine. Is there anyway to find the location of the PK ?</p>

Juliatzin
<p>Connecting to a Kubernetes cluster usually has nothing to do with SSH keys. In order to be able to execute commands onto a Kubernetes cluster you need to have a <code>kubeconfig</code> which will be used by <code>kubectl</code>.
In case you are searching for your <code>kubeconfig</code> it is usually located at <code>~/.kube/config</code> but the path can vary depending onto your setup (you can set the path to anything by defining an environment variable like so: <code>export KUBECONFIG=/some/path/to/a/kubeconfig</code>).</p>
<p>SSH keys on the other hand are stored in a hidden folder called <code>.ssh</code> inside your home directory (<code>~/.ssh/</code>). In there you will find both private and public keys; public keys usually end on <code>.pub</code>.
In case you do not have a <code>~/.ssh/</code> directory check other users on your machine, perhaps you created them for the root user.
Other than that you might also want to check your <code>history</code> as the private key location can also be specified with <code>ssh -i</code> as in <code>ssh -i /path/to/private_key user@remote-machine</code>, perhaps you saved it somewhere else and specified the key that way.</p>
