[英]Permission key denied in Azure
I created a virtual machine on Azure. It was working fine a couple of days ago (I was able to connect to it using SSL using command prompt), after that I reserved the IP public address and shutdown the machine and.我在 Azure 上创建了一个虚拟机。几天前它工作正常(我能够使用命令提示符使用 SSL 连接到它),之后我保留了 IP 公共地址并关闭了机器。 Now I am trying to connect to it via SSL using same way and it is throwing permission denied error.
现在我正尝试使用相同的方式通过 SSL 连接到它,它抛出权限被拒绝的错误。 How to rectify this?
如何纠正这个?
ssh -i user_key.pem username@xx.xxx.xx.xx ssh -i user_key.pem username@xx.xxx.xx.xx
Load key "user_key.pem": Permission denied
加载密钥“user_key.pem”:权限被拒绝
username@xx.xxx.xx.xx: Permission denied (publickey).
username@xx.xxx.xx.xx:权限被拒绝(公钥)。
The problem was that I removed all permissions (except read by administrator) from my key.pem file.问题是我从 key.pem 文件中删除了所有权限(管理员读取除外)。 This I did because previously it was showing that the permissions are too open.
我这样做是因为之前显示权限太开放。
Opening the command prompt as administrator mode worked.
以管理员模式打开命令提示符有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.