<p>I have created multi-node cluster on GKE and I was using this shell script for fixing the virtual memory on nodes <a href="https://gist.github.com/thbkrkr/bc12a3457fd0f71c5a2106b11ce8801e" rel="nofollow noreferrer">Set vm.max_map_count=262144 on the nodes of a GKE cluster #k8s</a>. I want it to be executed in my cloud builder but it just returns Permission denied (publickey). on gcloud compute ssh execution. How can I fix it?</p>

Danyil Poprotskyi
<p>Basically in the line</p>
<pre><code>gcloud compute ssh --zone $(zone_by_node $node) $node -- sudo bash -c &quot;'&quot;$@&quot;'&quot; 
</code></pre>
<p>set your username before node:</p>
<pre><code>gcloud compute ssh --zone $(zone_by_node $node) username@$node -- sudo bash -c &quot;'&quot;$@&quot;'&quot;
</code></pre>
<p>Your username is first part of your email before @.</p>
