SSH端口转发错误“权限被拒绝(公钥)"; [英] SSH Port Forwarding error "Permission denied (publickey)"

查看:615
本文介绍了SSH端口转发错误“权限被拒绝(公钥)";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<表格边框="0" cellpadding ="0" width ="100%" style ="width:100.0%"> <身体>

我正在尝试使用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端口转发错误“权限被拒绝(公钥)";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆