- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
通过 VSCode 连接 Azure VM 时出现以下问题,但当我们使用 .ppk 文件时,我们可以通过 Putty 连接。当我们在 VSCode 中使用 ssh 配置同时使用 .ppk 和 .pem 时,出现以下错误。错误:权限被拒绝(公钥)
以下是 ssh 日志:root@VMWDEPOCEUS001:/var/log# tail -30 auth.log 10 月 27 日 10:19:12 VMWDEPOCEUS001 sshd[3087]:来自 156.163.33.75 端口 56425 ssh2 的无效用户 ssh 用户的密码失败 10 月 27 日 10:19 :14 VMWDEPOCEUS001 sshd[3087]:来自 156.163.33.75 端口 56425 ssh2 的无效用户 ssh 用户密码失败 10 月 27 日 10:19:15 VMWDEPOCEUS001 sshd[3087]:无效用户 ssh 用户 156.163.33.75 端口 564 重置连接25 [预授权] 10 月 27 日 10:23:52 VMWDEPOCEUS001 sshd[3095]:来自 156.163.33.75 端口 56590 的无效用户 ssh user1 10 月 27 日 10:23:57 VMWDEPOCEUS001 sshd[3095]:来自 156.163.33 的无效用户 ssh user1 没有失败。 75端口56590 ssh2 10 月 27 日 10:24:00 VMWDEPOCEUS001 sshd[3095]:来自 156.163.33.75 端口 56590 ssh2 的无效用户 ssh user1 的密码失败 10 月 27 日 10:24:04 VMWDEPOCEUS001 sshd[3095]:来自 156 的无效用户 ssh user1 的密码失败。 163. 33.75 端口 56590 ssh2 10 月 27 日 10:24:05 VMWDEPOCEUS001 sshd[3095]:无效用户重置连接 ssh user1 156.163.33.75 端口 56590 [preauth] 10 月 27 日 10:25:26 VMWDEPOCEUS001 sshd[3099]:接受的密码对于 user1 来自156.163.33.75 端口 56649 ssh2 10 月 27 日 10:25:26 VMWDEPOCEUS001 sshd[3099]:pam_unix(sshd:session):由 (uid=0) 10 月 27 日 10:25:26 VMWDEPOCEUS001 systemd-logind[1238 为用户 user1 打开 session ]:用户user1的新 session 6。 10 月 27 日 10:25:28 VMWDEPOCEUS001 sshd[3167]:从 156.163.33.75 端口 56651 ssh2 接受 user1 的密码 10 月 27 日 10:25:28 VMWDEPOCEUS001 sshd[3167]:pam_unix(sshd:session):为用户 user1 打开的 session (uid=0) 10 月 27 日 10:25:28 VMWDEPOCEUS001 systemd-logind[1238]:用户 user1 的新 session 7。 10 月 27 日 10:27:00 VMWDEPOCEUS001 sshd[3258]:来自 156.163.33.75 端口 26689 的用户 ssh user1 无效 10 月 27 日 10:27:14 VMWDEPOCEUS001 sshd[3258]:pam_unix(sshd:auth):检查通过;用户未知 10 月 27 日 10:27:14 VMWDEPOCEUS001 sshd[3258]:pam_unix(sshd:auth):身份验证失败; logname= uid=0 euid=0 tty=ssh ruser= rhost=156.163.33.75 10 月 27 日 10:27:16 VMWDEPOCEUS001 sshd[3258]:来自 156.163.33.75 端口 26689 ssh2 的无效用户 ssh user1 的密码失败 10 月 27 日 10:27 :30 VMWDEPOCEUS001 sshd[3258]: pam_unix(sshd:auth): 检查通过;用户未知 10 月 27 日 10:27:33 VMWDEPOCEUS001 sshd[3258]:来自 156.163.33.75 端口 26689 ssh2 的无效用户 ssh user1 的密码失败 10 月 27 日 10:27:47 VMWDEPOCEUS001 sshd[3258]:pam_unix(sshd:auth):检查经过;用户未知 10 月 27 日 10:27:49 VMWDEPOCEUS001 sshd[3258]:来自 156.163.33.75 端口 26689 ssh2 的无效用户 ssh user1 的密码失败 10 月 27 日 10:27:49 VMWDEPOCEUS001 sshd[3258]:无效用户 ssh user1 156.1 重置连接63 .33.75 端口 26689 [preauth] Oct 27 10:27:49 VMWDEPOCEUS001 sshd[3258]:PAM 2 更多身份验证失败; logname= uid=0 euid=0 tty=ssh ruser= rhost=156.163.33.75 10 月 27 日 10:31:22 VMWDEPOCEUS001 sshd[3279]:来自 156.163.33.75 端口 56826 的用户 ssh user1 无效 10 月 27 日 10:31:34 VMWDEPOCEUS00 1 个固态硬盘[3279]: pam_unix(sshd:auth): 检查通过;用户未知 10 月 27 日 10:31:34 VMWDEPOCEUS001 sshd[3279]:pam_unix(sshd:auth):身份验证失败; logname= uid=0 euid=0 tty=ssh ruser= rhost=156.163.33.75 10 月 27 日 10:31:35 VMWDEPOCEUS001 sshd[3279]:来自 156.163.33.75 端口 56826 ssh2 的无效用户 ssh user1 的密码失败 10 月 27 日 10:32 :09 VMWDEPOCEUS001 sshd[3279]: pam_unix(sshd:auth): 检查通过;用户未知 10 月 27 日 10:32:10 VMWDEPOCEUS001 sshd[3279]:来自 156.163.33.75 端口 56826 ssh2 的无效用户 ssh user1 的密码失败
预期:需要使用 VSCode 配置文件连接到 Azure Ubuntu (18.04) VM
最佳答案
我尝试在我的环境中重现相同的情况,SSH 已成功使用 VSCode 连接到 Azure Ubuntu (18.04) VM。
根据 Docs Putty 不支持发生错误。尝试安装OpenSSH客户端
将您的用户更改为 root:
sudo -s
尝试安装ssh
,或者如果已经安装更新
它并启用您的ssh并检查您的状态是否处于事件状态如下所示
sudo apt-get install ssh
sudo apt-get update
systemctl enable ssh.service
systemctl status ssh.service
生成ssh key 。尽量避免ssh -i,请在配置 ssh 主机时使用user@hostname
,如下所示。
检查您是否提供了配置文件主机、用户和主机名是否正确。
当我尝试连接时,我收到了相同的错误和 ssh 日志,如下所示。
要解决此问题:
首先尝试使用sudo passwd root
更改密码更新密码并启用密码身份验证运行sudo nano/etc/ssh/sshd_config
它将打开nano编辑器,如下所示.
一旦您的 Nano 编辑器更改了文件系统权限,您向下滚动将光标放在 #
按 insert insert 类型 PermitRootlogin yes
和 pubkeyauthentication yes
按 escape &: x Enter
按照以下命令重新启动 SSH 服务:
sudo systemctl reload sshd
并尝试使用 ssh user@hostname
连接,成功。
如果您仍然遇到问题,请检查 root ssh 安装并更新检查状态是否处于事件状态,位于上方并在 Nano 编辑器中检查
PasswordAuthentication
ChallengeResponseAuthentication
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
UsePAM yes
要了解更多详细信息,请引用此链接:
SSH Failed Permission Denied 作者:phoenixnap
关于azure - 无法通过 VS code 连接 Azure ubuntu VM,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74222103/
我是 Mercurial 的新手,并且不知何故仍处于评估过程中,所以这四个概念对我来说有点困惑。有些被提到等同于 Git 的 Staging/Index 概念,有些甚至比 Git 的 Staging
关闭。这个问题需要更多focused .它目前不接受答案。 想改善这个问题吗?更新问题,使其仅关注一个问题 editing this post . 6 个月前关闭。 Improve this ques
任何人都可以给我详细信息吗? 例如? #ID 是属性、特性、选择器还是 anchor ? 默认属性和默认属性是不同的东西吗? 这些都是标签还是元素? 我们将对此说些什么 这个 ..... 还有这些
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 8 年前。 Improve this qu
我有一个由 Javascript 填充的下拉列表。 在决定加载时显示的默认值时,我意识到以下属性显示的值完全相同: innerText innerHTML label text textContent
我可以知道每个 Exec 之间有什么区别吗? , ExecWait , ExecShell , nsExec::Exec , nsExec::ExecToLog, nsExec::ExecToStac
当您处于版本 1 和版本 2 之间时,您会如何维护您的软件? 从我的角度来看,“补丁”、“修补程序”、“维护版本”、“服务包”等术语都很模糊,根据与您交谈的对象不同,定义也不同。 您如何称呼版本之间的
我刚刚发现在 ES6 中有一个新的数学方法:Math.trunc . 我在 MDN article 中阅读了它的描述。 , 听起来像使用 |0 . 此外,>0 , &-1 , ^0也做类似的事情(感谢
我想知道我的 StackPanel 所有项目的高度。 有什么区别: Height - 获取或设置元素的建议高度。 ActualHeight - 获取该元素的渲染高度。 (只读) ExtentHeigh
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 9 年前。 Improve this
我对所有声称以某种方式阻止计算的内置 Mathematica 函数感到困惑:Unevaluated、Defer、Hold ,以及超过 6 个 Hold* 形式。 Mathematica 文档只是单独解
我什至不确定正确的术语,所以让我从我的目标开始:拥有一个简单的应用程序(“Data Doler”),它只会将大量数据从文件读取到内存中,然后提供服务将该数据切片到名为“Data Lapper”的单个多
我刚刚开始在我的项目中使用 Elasticsearch,我想像 sql 关键字一样搜索 '喜欢%' 做。 谁能解释一下 之间的区别通配符 , 前缀 , 查询字符串和 正则表达式 ? 哪个可以搜索最好性
由于我对任何主流浏览器(Firefox、Chrome、Opera)都不太满意,而且我尝试过的不太受欢迎的浏览器(近十几种)都没有,所以我决定 DIY 并制作一个网页我想要最好的浏览器。 主要目标是让它
我知道如何使用 Python 解析页面。我的问题是哪种方法是所有解析技术中最快的,其他方法的速度有多快? 我知道的解析技术有Xpath、DOM、BeautifulSoup,还有使用Python的fin
我试图从正在解析的命令行中找出哪个函数最适合将十进制、十六进制或八进制数转换为 int 最好——在不知道输入的情况下事先。 目标是使用一个函数来识别不同类型的输入并将其分配给它的整数 (int) 值,
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the
我们需要在我们的网站上显示酒吧、餐馆和剧院等各种场所的元信息(例如,地址、姓名)。 理想情况下,用户会输入地点名称以及邮政编码,我们会提供最接近的匹配项。 人们将哪些 API 用于类似的地理定位目的?
就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用或专业知识的支持,但这个问题可能会引起辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the he
我正在创建我的第一个 Web 应用程序,我真的很困惑应该使用什么技术。 我的应用程序需要看起来很严肃(像一个应用程序),它不需要很多色彩缤纷的图形界面。它只需要一个工具栏、一个标签栏、一个拆分面板(最
我是一名优秀的程序员,十分优秀!