gpt4 book ai didi

linux - 无法连接到 Azure Ubuntu VM - 公钥被拒绝

转载 作者:IT王子 更新时间:2023-10-29 00:51:25 27 4
gpt4 key购买 nike

我们在 Azure 上使用 Ubuntu VM 一段时间了,很少遇到任何问题。然而,其中一台虚拟机最近出现了问题。出乎意料的是,Ubuntu VM 开始拒绝公钥 -

ssh -i ~/azure.key <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="4b2a29280b333231652827243e2f2a3b3b65252e3f" rel="noreferrer noopener nofollow">[email protected]</a>
Permission denied (publickey).

冗长的迹象让我更加困惑 -

~$ ssh -i -v -v -v ~/azure.key <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="37565554774f4e4d19545b58425356474719595243" rel="noreferrer noopener nofollow">[email protected]</a>
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

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

最佳答案

下面这个怎么样?

$ ssh -i ~/azure.key -v -v -v <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ceafacad8eb6b7b4e0ada2a1bbaaafbebee0a0abba" rel="noreferrer noopener nofollow">[email protected]</a>

关于linux - 无法连接到 Azure Ubuntu VM - 公钥被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22218282/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com