[英]Using AWS CLI with MobaXterm on Windows
I am a newbie to both AWS and MobaXterm.我是 AWS 和 MobaXterm 的新手。 I am trying to use MobaXterm to manage AWS instances because it comes with bash.
我正在尝试使用 MobaXterm 来管理 AWS 实例,因为它带有 bash。
I am following the commands as per https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html .我按照https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html遵循命令。
When I run the following command $ sudo./aws/install
, I get the following error:当我运行以下命令
$ sudo./aws/install
时,我收到以下错误:
Unable to start 'install': There is no application associated with the given file name extension.
无法开始“安装”:没有与给定文件扩展名关联的应用程序。
I did run chmod 777 to ensure that I am able to read/write/execute.我确实运行了 chmod 777 以确保我能够读/写/执行。 Please see attached image.
请参阅附图。
I do know that I can use Windows CLI installer in command line.我知道我可以在命令行中使用 Windows CLI 安装程序。 However, doing SSH to EC2 is a nightmare in Windows with all certificates.
然而,对 EC2 执行 SSH 是 Windows 的噩梦,所有证书都是如此。 With MobaXterm (because of bash), it is very easy.
使用 MobaXterm(因为 bash),这很容易。 So, my preference is to use MobaXterm instead of Windows command prompt.
所以,我的偏好是使用 MobaXterm 而不是 Windows 命令提示符。
Moreover, I don't want to directly install Ubuntu.此外,我不想直接安装 Ubuntu。 Hence, I am looking for some guidance here.
因此,我在这里寻找一些指导。 I'd appreciate any help.
我会很感激任何帮助。
I am hoping that I am not missing any package.我希望我不会错过任何 package。 Thanks for any help.
谢谢你的帮助。
In order for AWS cli to run on MobaXterm, you will need to run the following commands in MobaXterm:为了让 AWS cli 在 MobaXterm 上运行,您需要在 MobaXterm 中运行以下命令:
MobApt install python2-pip MobApt 安装 python2-pip
pip2 install awscli pip2 安装 awscli
It will take some time for MobaXterm to complete steps 1 and 2. Also, AWS cli runs super slow in MobaXterm. MobaXterm 完成第 1 步和第 2 步需要一些时间。此外,AWS cli 在 MobaXterm 中运行速度非常慢。 You are better off using cmd.
你最好使用 cmd。
This is the site that helped me ran AWS cli on MobaXterm.这是帮助我在 MobaXterm 上运行 AWS cli 的站点。 https://majornetwork.net/2017/07/installing-aws-cli-on-cygwin/
https://majornetwork.net/2017/07/installing-aws-cli-on-cygwin/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.