amazon-web-services - aws amazon linux gui使用vnc错误(EC2)
问题描述
对 AWS 来说非常新,如果是一个愚蠢的 Q,请见谅。
链接参考:https ://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-2-install-gui/
最后一步说:
"Use the -L parameter to enable port forwarding. Replace PEM_FILE with the path for your private key. Replace INSTANCE_IP with your instance's public or private IP, as appropriate.
ssh -L 5901:localhost:5901 -i PEM_FILE ec2-user@INSTANCE_IP"
所以我把它放在记事本里:
ssh -L 5901:localhost:5901 -i C:\Users\tlech\Documents\aws/AWS.pem ec2-user@[my instance private ip]
我在哪里粘贴这个命令?普通cmd还是腻子?当我在腻子中发布它时出现错误:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
解决方案
您必须在 Windows 的 cmd 提示符下运行该命令。或者,您可以安装git bash,它会给您一个 bash 提示符,您也可以在其中运行它。
你的命令会变成
ssh -L 5901:localhost:5901 -i C:\\Users\\tlech\\Documents\\aws\\AWS.pem ec2-user@[instance_public_ip]
推荐阅读
- bash - 如何从 1 个 csv 文件中获取数据,并将其与另一个文件合并到 Bash 脚本中的特定列中?
- javascript - Vee validate v3 ValidationObserver 不与使用 v-for 添加的动态验证提供程序一起工作
- python - GSSAPI 错误:升级到 MacOs BigSur 后出现其他故障(参见文本(来自 KDC 的错误:PROCESS_TGS)
- python - 从一列中包含多个值的csv文件创建面积图
- powershell - Azure DevOps 如何运行 exe 数据库迁移
- javascript - CSS 和 JS 无法从引导程序加载到 html 中
- cmake - CMake安装目录文件而不保留完整目录顶部
- rust - 如何在 Rust 中正确处理来自 maxminddb::geoip2 的 AddressNotFound 错误?
- python - Python Selenium 身份验证代理
- android - 防止在 webview 中移动按钮