SSH端口转发错误“权限被拒绝(公钥)";

编程入门 行业动态 更新时间:2024-10-28 04:26:01
本文介绍了SSH端口转发错误“权限被拒绝(公钥)";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用microsoft提供的说明来设置Jenkins服务器(显然,我无法提供链接,因为这是我的第一篇文章) .VM似乎已成功设置,但是 SSH端口转发似乎不起作用.公钥和私钥似乎可以正常工作,但是提供的端口转发命令始终会失败,并显示错误权限被拒绝(公钥)"

I am attempting to set up a Jenkins server using the instructions provided by microsoft (apparently I cannot provide the link since this is my first post).The VM seems to get set up successfully but the SSH port forwarding does not seem to work. The public and private keys seem to be working but the port forwarding command that is provided always fails with the error "Permission denied (publickey)"

推荐答案

您可以尝试使用以下命令进行详细调试.

ssh -i〜/azure.key -v -v -v<用户名> @< IP地址> ssh -i ~/azure.key -v -v -v <username>@<IP-Address>

对于类似问题,你可以参考这个 SO 讨论,看是否可行.否则,您可以为您所参考的MS文档提供错误快照(在隐藏个人信息之后)吗?

For similar issue, you may refer to this SO discussion and see if it works. Else could you provide the MS document you are referring with the snapshots of the error (after concealing the personal information)?

----------------------------------- -------------------------------------------------- ----------

如果此答案有帮助,请单击"标记为答案"或"投票". 要提供有关您的论坛体验的其他反馈,请单击 .

If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click here.

更多推荐

SSH端口转发错误“权限被拒绝(公钥)";

本文发布于:2023-10-07 12:33:20,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:端口   被拒   权限   错误   公钥

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!