<p>I installed k3s on a single node. But when i try to connect to it remotly from my machine with kubectl I get the following error:</p>
<pre class="lang-sh prettyprint-override"><code>» kubectl version                                                                                                                                                                              
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;15+&quot;, GitVersion:&quot;v1.15.8-beta.0&quot;, GitCommit:&quot;6c143d35bb11d74970e7bc0b6c45b6bfdffc0bd4&quot;, GitTreeState:&quot;archive&quot;, BuildDate:&quot;2020-01-29T00:00:00Z&quot;, GoVersion:&quot;go1.14beta1&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Unable to connect to the server: x509: certificate signed by unknown authority

</code></pre>
<p>On the k3s server kubectl is installed and puts that out:</p>
<pre class="lang-sh prettyprint-override"><code>&gt; kubectl version
Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.9+k3s1&quot;, GitCommit:&quot;630bebf94b9dce6b8cd3d402644ed023b3af8f90&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-09-17T19:05:07Z&quot;, GoVersion:&quot;go1.13.15&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.9+k3s1&quot;, GitCommit:&quot;630bebf94b9dce6b8cd3d402644ed023b3af8f90&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-09-17T19:05:07Z&quot;, GoVersion:&quot;go1.13.15&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}

</code></pre>
<p>I copied the k3s.yaml file from the server to my machine, renamed it to config and placed into ~/.kube/config.</p>
<p>I tried to use <code>--insecure-skip-tls-verify</code> and it works, but i don't want to use it everytime.</p>

<p>The error you are getting &quot;Unable to connect to the server: x509: certificate signed by unknown authority&quot; . It seems like you have copied only the ~/.kube/(config) file .
see the content of ~/.kube/(config) file and if that file entries of a CA root certificate , Client certificate and key entries then you need to copy all those three files also to your machine.</p>
