无法连接到Azure Ubuntu VM-公钥被拒绝 [英] Cannot connect to Azure Ubuntu VM - Public Key Denied
问题描述
我们已经在Azure上使用Ubuntu VM已有一段时间了,很少遇到任何问题.但是,其中一台虚拟机最近变得疯狂起来.突然,Ubuntu VM开始拒绝公钥-
We have been using Ubuntu VM's on Azure for some time now and rarely had a any problems. However, one of the VMs has gone bonkers lately. Out of the blue, the Ubuntu VM starts rejecting the public key -
ssh -i〜/azure.key abc@xyz.cloudapp.net
ssh -i ~/azure.key abc@xyz.cloudapp.net
权限被拒绝(公钥).
详细给了我更多混乱的迹象-
Verbose gives me even more confusing signs -
〜$ ssh -i -v -v -v〜/azure.key abc@xyz.cloudapp.net
~$ ssh -i -v -v -v ~/azure.key abc@xyz.cloudapp.net
警告:身份文件-v无法访问:没有此类文件或目录.
Warning: Identity file -v not accessible: No such file or directory.
OpenSSH_5.9p1 Debian-5ubuntu1.1,OpenSSL 1.0.1 2012年3月14日
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1:读取配置数据/etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1:/etc/ssh/ssh_config第19行:为*应用选项
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2:ssh_connect:Needpriv 0
debug2: ssh_connect: needpriv 0
ssh:无法解析主机名/home/abc/azure.key:名称或服务未知
ssh: Could not resolve hostname /home/abc/azure.key: Name or service not known
想知道是否有人遇到此问题或可以提出想法/解决方案吗?
Wondering if anyone saw this problem or can suggest ideas/solutions?
推荐答案
以下内容如何?
$ ssh -i ~/azure.key -v -v -v abc@xyz.cloudapp.net
这篇关于无法连接到Azure Ubuntu VM-公钥被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!