【问题标题】:Cannot connect to Azure Ubuntu VM - Public Key Denied无法连接到 Azure Ubuntu VM - 公钥被拒绝
【发布时间】:2014-04-08 17:20:46
【问题描述】:

我们在 Azure 上使用 Ubuntu VM 已有一段时间了,很少遇到任何问题。但是,最近其中一个虚拟机变得疯狂。出乎意料的是,Ubuntu VM 开始拒绝公钥 -

ssh -i ~/azure.key abc@xyz.cloudapp.net
Permission denied (publickey).

冗长给了我更多令人困惑的迹象 -

~$ ssh -i -v -v -v ~/azure.key abc@xyz.cloudapp.net
Warning: Identity file -v not accessible: No such file or directory.
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
ssh: Could not resolve hostname /home/abc/azure.key: Name or service not known

想知道是否有人看到这个问题或可以提出想法/解决方案?

【问题讨论】:

    标签: linux ubuntu azure ssh


    【解决方案1】:

    下面的呢?

    $ ssh -i ~/azure.key -v -v -v abc@xyz.cloudapp.net
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-11
      • 2019-06-14
      • 1970-01-01
      • 2016-02-29
      • 2021-06-16
      • 2016-01-11
      • 2021-11-05
      • 2022-12-17
      相关资源
      最近更新 更多