<p>Any help or hint would greatly appreciated.
I am using Windows 11 Professional.</p>
<p>I am connect to AWS and when I type the command &quot;kops&quot; I get the below error message.</p>
<p>[ec2-user@ip-172-31-10-126 ~]$ curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s <a href="https://api.github.com/repos/kubernetes/kops/releases/latest" rel="nofollow noreferrer">https://api.github.com/repos/kubernetes/kops/releases/latest</a> | grep tag_name | cut -d '&quot;' -f 4)/kops-darwin-amd64</p>
<p>% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current</p>
<pre><code>                             Dload  Upload   Total   Spent    Left  Speed
</code></pre>
<p>0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0</p>
<p>100  157M  100  157M    0     0  98.8M      0  0:00:01  0:00:01 --:--:--  119M</p>
<p>[ec2-user@ip-172-31-10-126 ~]$ chmod +x kops</p>
<p>[ec2-user@ip-172-31-10-126 ~]$ sudo mv kops /usr/local/bin/kops</p>
<p>[ec2-user@ip-172-31-10-126 ~]$ kops</p>
<p>-bash: /usr/local/bin/kops: cannot execute binary file</p>
<p><a href="https://i.stack.imgur.com/bRgU4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bRgU4.png" alt="enter image description here" /></a></p>

jadeite1000
<p>You're only using Windows 11 as a ssh client - it's not doing anything for Kubernetes.</p>
<p>As @jordanm indicates you're trying to download the MacOS version.  Change your command to:</p>
<pre><code>curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '&quot;' -f 4)/kops-linux-amd64
</code></pre>
<p>to get the Linux version</p>
